summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-24 00:35:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-24 00:35:44 +0300
commit43aa8e6bedff642ba584c447c03886c1f0c52aac (patch)
tree24818c9b3f5196e6c69b97b87d9a547bbbe5aa81 /src/gui/widgets
parent98295d32030c620040e3e6bd912c6808174640e4 (diff)
downloadplus-43aa8e6bedff642ba584c447c03886c1f0c52aac.tar.gz
plus-43aa8e6bedff642ba584c447c03886c1f0c52aac.tar.bz2
plus-43aa8e6bedff642ba584c447c03886c1f0c52aac.tar.xz
plus-43aa8e6bedff642ba584c447c03886c1f0c52aac.zip
Remove default parameter from staticbrowserbox.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/desktop.cpp6
-rw-r--r--src/gui/widgets/staticbrowserbox.cpp3
-rw-r--r--src/gui/widgets/staticbrowserbox.h2
3 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp
index 87eb14c48..f028dec29 100644
--- a/src/gui/widgets/desktop.cpp
+++ b/src/gui/widgets/desktop.cpp
@@ -73,12 +73,14 @@ Desktop::Desktop(const Widget2 *const widget) :
const std::string appName = branding.getValue("appName", std::string());
if (appName.empty())
{
- mVersionLabel->addRow(FULL_VERSION);
+ mVersionLabel->addRow(FULL_VERSION,
+ false);
}
else
{
mVersionLabel->addRow(strprintf("%s (%s)", FULL_VERSION,
- appName.c_str()));
+ appName.c_str()),
+ false);
}
mVersionLabel->addRow("copyright",
"(C) ManaPlus developers, http://manaplus.org");
diff --git a/src/gui/widgets/staticbrowserbox.cpp b/src/gui/widgets/staticbrowserbox.cpp
index de0d787a7..38e936579 100644
--- a/src/gui/widgets/staticbrowserbox.cpp
+++ b/src/gui/widgets/staticbrowserbox.cpp
@@ -291,7 +291,8 @@ void StaticBrowserBox::addRow(const std::string &cmd,
const char *const text)
{
addRow(strprintf("@@%s|%s@@", encodeLinkText(cmd).c_str(),
- encodeLinkText(text).c_str()));
+ encodeLinkText(text).c_str()),
+ false);
}
void StaticBrowserBox::addImage(const std::string &path)
diff --git a/src/gui/widgets/staticbrowserbox.h b/src/gui/widgets/staticbrowserbox.h
index ff5862577..452bea681 100644
--- a/src/gui/widgets/staticbrowserbox.h
+++ b/src/gui/widgets/staticbrowserbox.h
@@ -78,7 +78,7 @@ class StaticBrowserBox final : public Widget,
* Adds a text row to the browser.
*/
void addRow(const std::string &row,
- const bool atTop = false);
+ const bool atTop);
/**
* Adds a menu line to the browser.