summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-23 20:25:50 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-23 20:25:50 (GMT)
commit116f39d840fb78dfe33300a10d9a8f22ba41ca3b (patch)
treec0c9b432261dbc727bc909bade22e78441d7f41b /Source/cmCustomCommand.h
parent38482b46d171bde2073fadab65118c5c9df29e0f (diff)
downloadCMake-116f39d840fb78dfe33300a10d9a8f22ba41ca3b.zip
CMake-116f39d840fb78dfe33300a10d9a8f22ba41ca3b.tar.gz
CMake-116f39d840fb78dfe33300a10d9a8f22ba41ca3b.tar.bz2
performance improvement
Diffstat (limited to 'Source/cmCustomCommand.h')
-rw-r--r--Source/cmCustomCommand.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h
index 62b47fa..612780e 100644
--- a/Source/cmCustomCommand.h
+++ b/Source/cmCustomCommand.h
@@ -48,19 +48,19 @@ public:
{return m_Command + " " + m_Arguments;}
///! Return the command to execute
- std::string GetCommand() const {return m_Command;}
+ const std::string &GetCommand() const {return m_Command;}
void SetCommand(const char *cmd) {m_Command = cmd;}
///! Return the output
- std::string GetOutput() const {return m_Output;}
+ const std::string &GetOutput() const {return m_Output;}
void SetOutput(const char *cm) {m_Output = cm;}
///! Return the comment
- std::string GetComment() const {return m_Comment;}
+ const std::string &GetComment() const {return m_Comment;}
void SetComment(const char *cm) {m_Comment = cm;}
///! Return the commands arguments
- std::string GetArguments() const {return m_Arguments;}
+ const std::string &GetArguments() const {return m_Arguments;}
void SetArguments(const char *arg) {m_Arguments = arg;}
/**