Commit 6aee9994 authored by Benjamin REIS's avatar Benjamin REIS

use const string ref when possible

parent 3f965bfc
......@@ -32,7 +32,7 @@ LINPHONE_BEGIN_NAMESPACE
const string Imdn::imdnPrefix = "/imdn:imdn";
string Imdn::createXml (string id, time_t time, Imdn::Type imdnType, LinphoneReason reason) {
string Imdn::createXml (const string &id, time_t time, Imdn::Type imdnType, LinphoneReason reason) {
xmlBufferPtr buf;
xmlTextWriterPtr writer;
int err;
......
......@@ -37,7 +37,7 @@ public:
Display
};
static std::string createXml(std::string id, time_t time, Imdn::Type imdnType, LinphoneReason reason);
static std::string createXml (const std::string &id, time_t time, Imdn::Type imdnType, LinphoneReason reason);
static void parse (ChatRoom &cr, const std::string &content);
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment