| Index: remoting/host/server_log_entry.cc
|
| diff --git a/remoting/host/server_log_entry.cc b/remoting/host/server_log_entry.cc
|
| index 6e1a2672250ac3826926f3f9504edecc6afcb271..18f85c7822463442a26849ad19d8dede104d7311 100644
|
| --- a/remoting/host/server_log_entry.cc
|
| +++ b/remoting/host/server_log_entry.cc
|
| @@ -102,14 +102,14 @@ const char* ServerLogEntry::GetValueMode(ServerLogEntry::Mode mode) {
|
| }
|
| }
|
|
|
| -XmlElement* ServerLogEntry::ToStanza() const {
|
| - XmlElement* stanza = new XmlElement(QName(
|
| - kChromotingXmlNamespace, kLogEntry));
|
| +scoped_ptr<XmlElement> ServerLogEntry::ToStanza() const {
|
| + scoped_ptr<XmlElement> stanza(new XmlElement(QName(
|
| + kChromotingXmlNamespace, kLogEntry)));
|
| ValuesMap::const_iterator iter;
|
| for (iter = values_map_.begin(); iter != values_map_.end(); ++iter) {
|
| stanza->AddAttr(QName("", iter->first), iter->second);
|
| }
|
| - return stanza;
|
| + return stanza.Pass();
|
| }
|
|
|
| const char* ServerLogEntry::GetValueSessionState(bool connected) {
|
|
|