From 485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Nov 2018 01:09:30 +0300 Subject: Fix code style. --- src/gui/widgets/window.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets/window.cpp') diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 3df552404..f76c5fb9e 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -510,8 +510,10 @@ void Window::setLocationRelativeTo(const Widget *const widget) if (widget == nullptr) return; - int wx, wy; - int x, y; + int wx; + int wy; + int x; + int y; widget->getAbsolutePosition(wx, wy); getAbsolutePosition(x, y); @@ -527,8 +529,10 @@ void Window::setLocationHorisontallyRelativeTo(const Widget *const widget) if (widget == nullptr) return; - int wx, wy; - int x, y; + int wx; + int wy; + int x; + int y; widget->getAbsolutePosition(wx, wy); getAbsolutePosition(x, y); -- cgit v1.2.3-70-g09d2