From 116f39d840fb78dfe33300a10d9a8f22ba41ca3b Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 23 Jun 2003 16:25:50 -0400 Subject: [PATCH] performance improvement --- Source/cmCustomCommand.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h index 62b47fa9e8..612780eef4 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;} /**