summaryrefslogtreecommitdiff
path: root/Source/cmSourceFileLocation.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-03-12 17:04:48 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2014-04-28 21:43:27 -0400
commit14e7a8ae1c8be09a58156d71b185e2b98d378a07 (patch)
tree52ada8e2a138b0621f24d9582af5c052065f3e77 /Source/cmSourceFileLocation.h
parentb4cb543e0c0648bbd3dbede91f864f89275417c4 (diff)
downloadcmake-14e7a8ae1c8be09a58156d71b185e2b98d378a07.tar.gz
cmSourceFileLocation: Return a string reference
Diffstat (limited to 'Source/cmSourceFileLocation.h')
-rw-r--r--Source/cmSourceFileLocation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSourceFileLocation.h b/Source/cmSourceFileLocation.h
index c37fb1df5f..af3651a29e 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