From 0acc9ba58666df977e0251e4a9a721dc29645f6f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 11 Oct 2013 21:18:01 +0300 Subject: fix code style --- src/animatedsprite.cpp | 2 +- src/gui/widgets/browserbox_unittest.cc | 2 +- src/utils/langs.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 38f1a297b..abb4ea96f 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -210,7 +210,7 @@ bool AnimatedSprite::updateCurrentAnimation(const unsigned int time) fail = true; } else if ((mFrame->type == Frame::LABEL - && !mFrame->nextAction.empty())) + && !mFrame->nextAction.empty())) { fail = false; } diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc index 2d45e507f..87d31e900 100644 --- a/src/gui/widgets/browserbox_unittest.cc +++ b/src/gui/widgets/browserbox_unittest.cc @@ -53,7 +53,7 @@ TEST(browserbox, test1) Theme *theme = Theme::instance(); gcn::Widget::setGlobalFont(new SDLFont("/usr/share/fonts/truetype/" "ttf-dejavu/DejaVuSans-Oblique.ttf", 18)); - BrowserBox *box = new BrowserBox(nullptr, BrowserBox::AUTO_WRAP, ""); + BrowserBox *box = new BrowserBox(nullptr, BrowserBox::AUTO_WRAP, true, ""); box->setWidth(100); std::string row = "test"; box->addRow(row); diff --git a/src/utils/langs.cpp b/src/utils/langs.cpp index 7c514ac9c..e7a72a692 100644 --- a/src/utils/langs.cpp +++ b/src/utils/langs.cpp @@ -24,7 +24,7 @@ #include "debug.h" -static char *getLangName() +static const char *getLangName() { const char *const lang = getenv("LANG"); if (lang && strlen(lang) > 1000) -- cgit v1.2.3-70-g09d2