mail[Wesnoth-commits] r43362 - /trunk/src/server/room.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on June 12, 2010 - 20:57:
Author: silene
Date: Sat Jun 12 20:57:47 2010
New Revision: 43362

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43362&view=rev
Log:
Avoided costly roundtrip through strings.

Modified:
    trunk/src/server/room.cpp

Modified: trunk/src/server/room.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/room.cpp?rev=43362&r1=43361&r2=43362&view=diff
==============================================================================
--- trunk/src/server/room.cpp (original)
+++ trunk/src/server/room.cpp Sat Jun 12 20:57:47 2010
@@ -47,9 +47,9 @@
 void room::write(config& cfg) const
 {
        cfg["name"] = name_;
-       cfg["persistent"] = lexical_cast<std::string>(persistent_);
+       cfg["persistent"] = persistent_;
        cfg["topic"] = topic_;
-       cfg["logged"] = lexical_cast<std::string>(logged_);
+       cfg["logged"] = logged_;
 }
 
 const std::string& room::name() const




Related Messages


Powered by MHonArc, Updated Sat Jun 12 21:00:13 2010