瀏覽代碼

BUG: Initializing class constants of type double is illegal C++.

- Fixes build failure in Visual Studio.
Danielle Pace 14 年之前
父節點
當前提交
63459b7703
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Libs/Widgets/ctkCrosshairLabel.cpp

+ 3 - 1
Libs/Widgets/ctkCrosshairLabel.cpp

@@ -55,9 +55,11 @@ public:
   ctkCrosshairLabel::CrosshairTypes CrosshairType;
   ctkCrosshairLabel::CrosshairTypes CrosshairType;
   int       BullsEyeWidth;
   int       BullsEyeWidth;
 
 
-  static const double BULLS_EYE_BLANK_FRACTION = 0.1;
+  static const double BULLS_EYE_BLANK_FRACTION;
 };
 };
 
 
+const double ctkCrosshairLabelPrivate::BULLS_EYE_BLANK_FRACTION = 0.1;
+
 // --------------------------------------------------------------------------
 // --------------------------------------------------------------------------
 // ctkCrosshairLabelPrivate methods
 // ctkCrosshairLabelPrivate methods