mail[Wesnoth-commits] r28532 - /branches/1.4/src/network.cpp


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

Header


Content

Posted by paniemin on August 13, 2008 - 14:13:
Author: suokko
Date: Wed Aug 13 13:56:37 2008
New Revision: 28532

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28532&view=rev
Log:
Fixed variable not to use reference when copy is required

Modified:
    branches/1.4/src/network.cpp

Modified: branches/1.4/src/network.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/src/network.cpp?rev=28532&r1=28531&r2=28532&view=diff
==============================================================================
--- branches/1.4/src/network.cpp (original)
+++ branches/1.4/src/network.cpp Wed Aug 13 13:56:37 2008
@@ -894,7 +894,7 @@
        int day = timeinfo->tm_mday;
        assert(hour < 24 && hour >= 0);
        std::pair<bandwidth_map::iterator,bool> insertion = 
hour_stats[hour].insert(std::make_pair(packet_type, bandwidth_stats()));
-       bandwidth_map::iterator& inserted = insertion.first;
+       bandwidth_map::iterator inserted = insertion.first;
        if (!insertion.second && day != inserted->second.day)
        {
                // clear previuos day stats




Related Messages


Powered by MHonArc, Updated Wed Aug 13 14:21:33 2008