From e8fc638b750514ec264598df79a409da97493816 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Nov 2012 22:39:54 +0300 Subject: Fix code style. --- src/gui/debugwindow.cpp | 2 ++ src/gui/widgets/browserbox.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp index 6e11f83c5..04889d725 100644 --- a/src/gui/debugwindow.cpp +++ b/src/gui/debugwindow.cpp @@ -196,7 +196,9 @@ MapDebugTab::MapDebugTab(const Widget2 *const widget) : place(0, 7, mParticleCountLabel, 2); place(0, 8, mMapActorCountLabel, 2); #ifdef USE_OPENGL +#if defined (DEBUG_OPENGL_LEAKS) || defined(DEBUG_DRAW_CALLS) int n = 9; +#endif #ifdef DEBUG_OPENGL_LEAKS mTexturesLabel = new Label(this, strprintf("%s %s", _("Textures count:"), "?")); diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 51420e8c7..55bbcc89c 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -661,7 +661,7 @@ int BrowserBox::calcHeight() } y += fontHeight; } - if ((signed)wWidth != maxWidth) + if (static_cast(wWidth) != maxWidth) { wWidth = maxWidth; setWidth(maxWidth); -- cgit v1.2.3-70-g09d2