diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-03-12 21:04:48 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-04-29 01:43:27 (GMT) |
commit | 14e7a8ae1c8be09a58156d71b185e2b98d378a07 (patch) | |
tree | 52ada8e2a138b0621f24d9582af5c052065f3e77 /Source/cmSourceFileLocation.h | |
parent | b4cb543e0c0648bbd3dbede91f864f89275417c4 (diff) | |
download | CMake-14e7a8ae1c8be09a58156d71b185e2b98d378a07.zip CMake-14e7a8ae1c8be09a58156d71b185e2b98d378a07.tar.gz CMake-14e7a8ae1c8be09a58156d71b185e2b98d378a07.tar.bz2 |
cmSourceFileLocation: Return a string reference
Diffstat (limited to 'Source/cmSourceFileLocation.h')
-rw-r--r-- | Source/cmSourceFileLocation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSourceFileLocation.h b/Source/cmSourceFileLocation.h index c37fb1d..af3651a 100644 --- a/Source/cmSourceFileLocation.h +++ b/Source/cmSourceFileLocation.h @@ -71,7 +71,7 @@ public: * Otherwise it will be a relative path (possibly empty) that is * either with respect to the source or build tree. */ - const char* GetDirectory() const { return this->Directory.c_str(); } + const std::string& GetDirectory() const { return this->Directory; } /** * Get the file name as best is currently known. If |