mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
cmSourceFileLocation: Return a string reference
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user