summaryrefslogtreecommitdiff
path: root/Source/cmSourceFileLocation.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-09 23:07:44 -0500
committerBrad King <brad.king@kitware.com>2014-03-08 13:05:36 -0500
commitacb116e3b52362b41988aa27eeb593dd2e7194c0 (patch)
treeee9d147e3f338afcf615366cfb5a782c4695473b /Source/cmSourceFileLocation.h
parent84fdc9921cab35addba8c57cd201778de2cf87a4 (diff)
downloadcmake-acb116e3b52362b41988aa27eeb593dd2e7194c0.tar.gz
stringapi: Return a string reference for the configuration
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 64b8c1fd5b..c83e8c0f8d 100644
--- a/Source/cmSourceFileLocation.h
+++ b/Source/cmSourceFileLocation.h
@@ -76,7 +76,7 @@ public:
* final name (but could be). Otherwise the returned name is the
* final name.
*/
- const char* GetName() const { return this->Name.c_str(); }
+ const std::string& GetName() const { return this->Name; }
/**
* Get the cmMakefile instance for which the source file was created.