소스 검색

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;
   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