ソースを参照

Make the bool conversion operator a const method.

Sascha Zelzer 13 年 前
コミット
c6668f94d5
共有2 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 1 1
      Libs/CommandLineModules/Core/ctkCmdLineModuleReference.cpp
  2. 1 1
      Libs/CommandLineModules/Core/ctkCmdLineModuleReference.h

+ 1 - 1
Libs/CommandLineModules/Core/ctkCmdLineModuleReference.cpp

@@ -70,7 +70,7 @@ ctkCmdLineModuleReference &ctkCmdLineModuleReference::operator =(const ctkCmdLin
 }
 
 //----------------------------------------------------------------------------
-ctkCmdLineModuleReference::operator bool()
+ctkCmdLineModuleReference::operator bool() const
 {
   return !d->RawXmlDescription.isEmpty();
 }

+ 1 - 1
Libs/CommandLineModules/Core/ctkCmdLineModuleReference.h

@@ -47,7 +47,7 @@ public:
   ctkCmdLineModuleReference(const ctkCmdLineModuleReference& ref);
   ctkCmdLineModuleReference& operator=(const ctkCmdLineModuleReference& ref);
 
-  operator bool();
+  operator bool() const;
 
   ctkCmdLineModuleDescription description() const;