From 0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 5 Jan 2009 21:16:23 +0100 Subject: Mostly whitespace and formatting changes (merged from eAthena client) --- src/gui/window.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/gui/window.cpp') diff --git a/src/gui/window.cpp b/src/gui/window.cpp index 582e4a67..64607243 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -31,7 +31,6 @@ #include "window.h" #include "gui.h" -#include "gccontainer.h" #include "windowcontainer.h" #include "widgets/layout.h" @@ -87,8 +86,7 @@ Window::Window(const std::string& caption, bool modal, Window *parent): { logger->log("Window::Window(\"%s\")", caption.c_str()); - if (!windowContainer) - { + if (!windowContainer) { throw GCN_EXCEPTION("Window::Window(): no windowContainer set"); } @@ -128,17 +126,15 @@ Window::Window(const std::string& caption, bool modal, Window *parent): Window::~Window() { logger->log("UNLOAD: Window::~Window(\"%s\")", getCaption().c_str()); - const std::string &name = mWindowName; - if (!name.empty()) - { - // Saving X, Y and Width and Height for resizables in the config + + // Saving X, Y and Width and Height for resizables in the config + if (!name.empty()) { config.setValue(name + "WinX", getX()); config.setValue(name + "WinY", getY()); config.setValue(name + "Visible", isVisible()); - if (mGrip) - { + if (mGrip) { config.setValue(name + "WinWidth", getWidth()); config.setValue(name + "WinHeight", getHeight()); } -- cgit v1.2.3-70-g09d2