refs #336 Style and const-correctness.

This commit is contained in:
Mathew Sutcliffe
2014-10-11 23:56:17 +01:00
parent 663740d5bd
commit e3446d78d8
5 changed files with 8 additions and 9 deletions

View File

@@ -111,7 +111,7 @@ namespace BlackMisc
/*
* Formatted string
*/
QString CTextMessage::asString(bool withSender, bool withRecipient, const QString separator) const
QString CTextMessage::asString(bool withSender, bool withRecipient, const QString &separator) const
{
QString s = this->receivedTime();
if (withSender)
@@ -150,7 +150,7 @@ namespace BlackMisc
/*
* As status message
*/
CStatusMessage CTextMessage::asStatusMessage(bool withSender, bool withRecipient, const QString separator) const
CStatusMessage CTextMessage::asStatusMessage(bool withSender, bool withRecipient, const QString &separator) const
{
QString m = this->asString(withSender, withRecipient, separator);
return { this->getMessageCategory(), CStatusMessage::SeverityInfo, m };