passing string by const ref

This commit is contained in:
Matej Sekoranja
2012-08-20 16:37:26 +02:00
parent 8f3a1dde34
commit 86adfc091b
2 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ Status::Status() :
{
}
Status::Status(StatusType type, String message) :
Status::Status(StatusType type, String const & message) :
m_statusType(type), m_message(message)
{
if (type == STATUSTYPE_OK)
@@ -31,7 +31,7 @@ Status::Status(StatusType type, String message) :
//PVDATA_REFCOUNT_MONITOR_CONSTRUCT(status);
}
Status::Status(StatusType type, String message, String stackDump) :
Status::Status(StatusType type, String const & message, String const & stackDump) :
m_statusType(type), m_message(message), m_stackDump(stackDump)
{
if (type == STATUSTYPE_OK)