summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commandhandler.cpp2
-rw-r--r--src/commandhandler.h2
-rw-r--r--src/gui/widgets/spellshortcutcontainer.cpp2
-rw-r--r--src/utils/copynpaste.cpp2
4 files changed, 3 insertions, 5 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index d17d2b636..c17234c18 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -228,7 +228,7 @@ void CommandHandler::handleCommand(const std::string &command,
tab->chatLog(_("Unknown command."));
}
-char CommandHandler::parseBoolean(const std::string &value)
+signed char CommandHandler::parseBoolean(const std::string &value)
{
std::string opt = value.substr(0, 1);
diff --git a/src/commandhandler.h b/src/commandhandler.h
index ec42573a1..5a73b2335 100644
--- a/src/commandhandler.h
+++ b/src/commandhandler.h
@@ -64,7 +64,7 @@ class CommandHandler final
static void replaceVars(std::string &str);
- static char parseBoolean(const std::string &value);
+ static signed char parseBoolean(const std::string &value);
protected:
friend class ChatTab;
diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp
index 78d112908..ae215b480 100644
--- a/src/gui/widgets/spellshortcutcontainer.cpp
+++ b/src/gui/widgets/spellshortcutcontainer.cpp
@@ -51,8 +51,6 @@ SpellShortcutContainer::SpellShortcutContainer(const unsigned number) :
mSpellPopup(new SpellPopup),
mNumber(number)
{
- mBoxWidth = mBoxWidth;
-
addMouseListener(this);
addWidgetListener(this);
diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp
index 5d7c32e29..82a58f113 100644
--- a/src/utils/copynpaste.cpp
+++ b/src/utils/copynpaste.cpp
@@ -473,7 +473,7 @@ bool retrieveBuffer(std::string&, size_t&)
return false;
}
-bool sendBuffer(std::string& text)
+bool sendBuffer(std::string& text A_UNUSED)
{
return false;
}