summaryrefslogtreecommitdiff
path: root/Source/cmFilePathChecksum.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-02-15 00:00:51 +0100
committerSebastian Holtermann <sebholt@xwmw.org>2017-02-19 12:35:42 +0100
commit2296a2e9ee04fc83a294d51421038dca40b3150f (patch)
tree185349a4b435572a2b81b56363dcdcc29800cbeb /Source/cmFilePathChecksum.cxx
parentd3a9887149d638dd23df2b46ff67a90cd91d33fe (diff)
downloadcmake-2296a2e9ee04fc83a294d51421038dca40b3150f.tar.gz
cmFilePathChecksum: Make methods const useable
Diffstat (limited to 'Source/cmFilePathChecksum.cxx')
-rw-r--r--Source/cmFilePathChecksum.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFilePathChecksum.cxx b/Source/cmFilePathChecksum.cxx
index 3d8b695345..62f52e5908 100644
--- a/Source/cmFilePathChecksum.cxx
+++ b/Source/cmFilePathChecksum.cxx
@@ -45,7 +45,7 @@ void cmFilePathChecksum::setupParentDirs(const std::string& currentSrcDir,
parentDirs[3].second = "ProjectBinary";
}
-std::string cmFilePathChecksum::get(const std::string& filePath)
+std::string cmFilePathChecksum::get(const std::string& filePath) const
{
std::string relPath;
std::string relSeed;
@@ -82,7 +82,7 @@ std::string cmFilePathChecksum::get(const std::string& filePath)
}
std::string cmFilePathChecksum::getPart(const std::string& filePath,
- size_t length)
+ size_t length) const
{
return get(filePath).substr(0, length);
}