浏览代码

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.  */
   void SetStartingContext(cmListFileContext const& lfc)
     { this->StartingContext = lfc; }
-  cmListFileContext const& GetStartingContext()
+  cmListFileContext const& GetStartingContext() const
     { return this->StartingContext; }
 private:
   cmListFileContext StartingContext;