Author: ilor
Date: Sun Mar 22 13:10:38 2009
New Revision: 34024
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34024&view=rev
Log:
Backport r34006 and r34023 (missing &s in editor code)
Modified:
branches/1.6/src/editor2/editor_display.hpp
branches/1.6/src/editor2/editor_map.hpp
Modified: branches/1.6/src/editor2/editor_display.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/editor2/editor_display.hpp?rev=34024&r1=34023&r2=34024&view=diff
==============================================================================
--- branches/1.6/src/editor2/editor_display.hpp (original)
+++ branches/1.6/src/editor2/editor_display.hpp Sun Mar 22 13:10:38 2009
@@ -34,7 +34,7 @@
void remove_brush_loc(const map_location& hex);
const editor_map& map() const { return static_cast<const
editor_map&>(get_map()); }
void rebuild_terrain(const map_location &loc);
- void set_toolbar_hint(const std::string value) { toolbar_hint_ = value;
}
+ void set_toolbar_hint(const std::string& value) { toolbar_hint_ =
value; }
protected:
void pre_draw();
Modified: branches/1.6/src/editor2/editor_map.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/editor2/editor_map.hpp?rev=34024&r1=34023&r2=34024&view=diff
==============================================================================
--- branches/1.6/src/editor2/editor_map.hpp (original)
+++ branches/1.6/src/editor2/editor_map.hpp Sun Mar 22 13:10:38 2009
@@ -107,7 +107,7 @@
/**
* Return the selection set.
*/
- const std::set<map_location> selection() const { return selection_; }
+ const std::set<map_location>& selection() const { return selection_; }
/**
* Clear the selection
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits