summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-06-28 14:18:28 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-06-28 14:18:28 (GMT)
commitcdace2fcd29a96b329c76bf1f400430d420f3fd0 (patch)
treeb3cda246d74e1fc6fda6ea3633e6ccf031ba930c /Source/cmSourceFile.h
parentc6017182bf734d58942773898a9bf9d8a99738dd (diff)
downloadCMake-cdace2fcd29a96b329c76bf1f400430d420f3fd0.zip
CMake-cdace2fcd29a96b329c76bf1f400430d420f3fd0.tar.gz
CMake-cdace2fcd29a96b329c76bf1f400430d420f3fd0.tar.bz2
performance fix
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 29c56dc..23063d2 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -84,7 +84,7 @@ public:
/**
* The full path to the file.
*/
- std::string GetFullPath() const {return m_FullPath;}
+ const std::string &GetFullPath() const {return m_FullPath;}
void SetFullPath(const char *name) {m_FullPath = name;}
/**
@@ -98,7 +98,7 @@ public:
* The file name associated with stripped off directory and extension.
* (In most cases this is the name of the class.)
*/
- std::string GetSourceExtension() const {return m_SourceExtension;}
+ const std::string &GetSourceExtension() const {return m_SourceExtension;}
void SetSourceExtension(const char *name) {m_SourceExtension = name;}
/**