瀏覽代碼

cmCTestBuildHandler: Fix warning in FragmentCompare signature

```
warning: the specified comparator type does not provide a const call
operator [-Wuser-defined-warnings]
```

Reported-by: Sean McBride <[email protected]>
Brad King 8 年之前
父節點
當前提交
f38644527c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/CTest/cmCTestBuildHandler.cxx

+ 1 - 1
Source/CTest/cmCTestBuildHandler.cxx

@@ -506,7 +506,7 @@ public:
     : FTC(CM_NULLPTR)
   {
   }
-  bool operator()(std::string const& l, std::string const& r)
+  bool operator()(std::string const& l, std::string const& r) const
   {
     // Order files by modification time.  Use lexicographic order
     // among files with the same time.