Author: mordante
Date: Sat Apr 25 18:20:22 2009
New Revision: 35198
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35198&view=rev
Log:
Avoid shadowing of the size variable.
Modified:
trunk/src/gui/widgets/window.cpp
Modified: trunk/src/gui/widgets/window.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/window.cpp?rev=35198&r1=35197&r2=35198&view=diff
==============================================================================
--- trunk/src/gui/widgets/window.cpp (original)
+++ trunk/src/gui/widgets/window.cpp Sat Apr 25 18:20:22 2009
@@ -822,7 +822,7 @@
if(size.x > static_cast<int>(maximum_width)) {
NEW_reduce_width(maximum_width);
- tpoint size = get_best_size();
+ size = get_best_size();
if(size.x > static_cast<int>(maximum_width)) {
return false;
}
@@ -831,7 +831,7 @@
if(size.y > static_cast<int>(maximum_height)) {
NEW_reduce_height(maximum_height);
- tpoint size = get_best_size();
+ size = get_best_size();
if(size.y > static_cast<int>(maximum_height)) {
return false;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits