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 ...@@ -32,7 +32,7 @@ LINPHONE_BEGIN_NAMESPACE
const string Imdn::imdnPrefix = "/imdn:imdn"; 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; xmlBufferPtr buf;
xmlTextWriterPtr writer; xmlTextWriterPtr writer;
int err; int err;
......
...@@ -37,7 +37,7 @@ public: ...@@ -37,7 +37,7 @@ public:
Display 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); static void parse (ChatRoom &cr, const std::string &content);
private: 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