summaryrefslogtreecommitdiffstats
path: root/Source/cmStateDirectory.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-08-09 15:58:45 (GMT)
committerCraig Scott <craig.scott@crascit.com>2018-08-12 08:59:21 (GMT)
commitada121e573fb1a4c2d4ea5ee2ee51daca80d4de8 (patch)
treef7c7c16ff5e3011073d00e4be9b9bc1ff28f96ce /Source/cmStateDirectory.h
parenteba2b13a835000a614f21a1205a598462a4f8843 (diff)
downloadCMake-ada121e573fb1a4c2d4ea5ee2ee51daca80d4de8.zip
CMake-ada121e573fb1a4c2d4ea5ee2ee51daca80d4de8.tar.gz
CMake-ada121e573fb1a4c2d4ea5ee2ee51daca80d4de8.tar.bz2
cmStateDirectory: use const std::string& for return values
Diffstat (limited to 'Source/cmStateDirectory.h')
-rw-r--r--Source/cmStateDirectory.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmStateDirectory.h b/Source/cmStateDirectory.h
index bc96cc9..412664f 100644
--- a/Source/cmStateDirectory.h
+++ b/Source/cmStateDirectory.h
@@ -22,13 +22,13 @@ class cmStateDirectory
cmStateSnapshot const& snapshot);
public:
- const char* GetCurrentSource() const;
+ std::string const& GetCurrentSource() const;
void SetCurrentSource(std::string const& dir);
- const char* GetCurrentBinary() const;
+ std::string const& GetCurrentBinary() const;
void SetCurrentBinary(std::string const& dir);
- const char* GetRelativePathTopSource() const;
- const char* GetRelativePathTopBinary() const;
+ std::string const& GetRelativePathTopSource() const;
+ std::string const& GetRelativePathTopBinary() const;
void SetRelativePathTopSource(const char* dir);
void SetRelativePathTopBinary(const char* dir);