cmSourceFileLocation: Return a string reference

This commit is contained in:
Ben Boeckel 2014-03-12 17:04:48 -04:00
parent b4cb543e0c
commit 14e7a8ae1c
1 changed files with 1 additions and 1 deletions

View File

@ -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