瀏覽代碼

cmFunctionBlocker: Constify method

Stephen Kelly 10 年之前
父節點
當前提交
a03f3d0e01
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmFunctionBlocker.h

+ 1 - 1
Source/cmFunctionBlocker.h

@@ -39,7 +39,7 @@ public:
   /** Set/Get the context in which this blocker is created.  */
   /** Set/Get the context in which this blocker is created.  */
   void SetStartingContext(cmListFileContext const& lfc)
   void SetStartingContext(cmListFileContext const& lfc)
     { this->StartingContext = lfc; }
     { this->StartingContext = lfc; }
-  cmListFileContext const& GetStartingContext()
+  cmListFileContext const& GetStartingContext() const
     { return this->StartingContext; }
     { return this->StartingContext; }
 private:
 private:
   cmListFileContext StartingContext;
   cmListFileContext StartingContext;