소스 검색

Make the bool conversion operator a const method.

Sascha Zelzer 12 년 전
부모
커밋
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;