Status avoid extra copies

This commit is contained in:
Michael Davidsaver
2018-09-20 16:51:09 -07:00
parent 32aa0dd72f
commit 5a59b1da75

View File

@@ -77,13 +77,13 @@ namespace epics { namespace pvData {
* Get error message describing an error. Required if error status.
* @return error message.
*/
inline std::string getMessage() const { return m_message; }
inline const std::string& getMessage() const { return m_message; }
/**
* Get stack dump where error (exception) happened. Optional.
* @return stack dump.
*/
inline std::string getStackDump() const { return m_stackDump; }
inline const std::string& getStackDump() const { return m_stackDump; }
/**
* Convenient OK test. Same as <code>(getType() == StatusType.OK)</code>.