summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/animatedsprite.cpp2
-rw-r--r--src/gui/widgets/browserbox_unittest.cc2
-rw-r--r--src/utils/langs.cpp2
3 files changed, 3 insertions, 3 deletions
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)