diff options
author | rubidium <rubidium@openttd.org> | 2010-08-01 18:53:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-01 18:53:30 +0000 |
commit | e356cb94050797cccbf05b3a411105528da8ee90 (patch) | |
tree | 3d98354dc5983a03e685f116b1b5c5b73607de0f /src/autoreplace_gui.cpp | |
parent | 605f6d0ed3c81a77d533f3db40ed50350d57536c (diff) | |
download | openttd-e356cb94050797cccbf05b3a411105528da8ee90.tar.xz |
(svn r20281) -Codechange: unify case scope closure + break coding style
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r-- | src/autoreplace_gui.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index 963721beb..36612de78 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -288,7 +288,8 @@ public: d.width += padding.width; d.height += padding.height; *size = maxdim(*size, d); - } break; + break; + } } } @@ -433,13 +434,15 @@ public: EngineID veh_to = this->sel_engine[1]; DoCommandP(0, this->sel_group << 16, veh_from + (veh_to << 16), CMD_SET_AUTOREPLACE); this->SetDirty(); - } break; + break; + } case RVW_WIDGET_STOP_REPLACE: { // Stop replacing EngineID veh_from = this->sel_engine[0]; DoCommandP(0, this->sel_group << 16, veh_from + (INVALID_ENGINE << 16), CMD_SET_AUTOREPLACE); this->SetDirty(); - } break; + break; + } case RVW_WIDGET_LEFT_MATRIX: case RVW_WIDGET_RIGHT_MATRIX: { |