cmSourceFileLocation: Return a string reference
This commit is contained in:
parent
b4cb543e0c
commit
14e7a8ae1c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue