Răsfoiți Sursa

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 ani în urmă
părinte
comite
f38644527c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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.