Browse Source

Initializing firstFocusFlag and making it private

Shaddock Heath 9 years ago
parent
commit
8be7821305
2 changed files with 3 additions and 3 deletions
  1. 2 1
      Source/Atomic/UI/UIEditField.cpp
  2. 1 2
      Source/Atomic/UI/UIEditField.h

+ 2 - 1
Source/Atomic/UI/UIEditField.cpp

@@ -33,7 +33,8 @@ using namespace tb;
 namespace Atomic
 {
 
-UIEditField::UIEditField(Context* context, bool createWidget) : UIWidget(context, false)
+UIEditField::UIEditField(Context* context, bool createWidget) : UIWidget(context, false),
+    firstFocusFlag_(false)
 {
     if (createWidget)
     {

+ 1 - 2
Source/Atomic/UI/UIEditField.h

@@ -74,10 +74,9 @@ protected:
 
     virtual void OnFocusChanged(bool focused);
 
+private:
     // Used to keep track of if we have just been focused for the click select
     bool firstFocusFlag_;
-private:
-
 };
 
 }