Minor code style fixes.

This commit is contained in:
vng 2012-06-15 23:14:04 -07:00 committed by Alex Zolotarev
parent 738d0aed2c
commit bcebd9665a
2 changed files with 7 additions and 3 deletions

View file

@ -14,13 +14,17 @@ namespace threads
{
private:
bool m_isCancelled;
protected:
bool IsCancelled() { return m_isCancelled; }
inline bool IsCancelled() const { return m_isCancelled; }
public:
IRoutine() : m_isCancelled(false) {}
virtual ~IRoutine() {}
/// Performing the main task
virtual void Do() = 0;
/// Implement this function to respond to the cancellation event.
/// Cancellation means that IRoutine should exit as fast as possible.
virtual void Cancel() { m_isCancelled = true; }

View file

@ -161,8 +161,8 @@
// Helper to display/hide pin on screen tap
m_bookmark = [[BalloonView alloc] initWithTarget:self andSelector:@selector(onBookmarkClicked)];
// cyclic dependence, @TODO refactor.
// Here we're creating view and window handle in it, and later we should pass framework to the view
/// @TODO refactor cyclic dependence.
/// Here we're creating view and window handle in it, and later we should pass framework to the view.
EAGLView * v = (EAGLView *)self.view;
Framework & f = GetFramework();