summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-01 15:14:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-01 23:42:37 +0300
commitf9030497b6196ce2fadb6b6ada5d784be227d9a6 (patch)
treed11408b35d0860709d31e6520578cdd28391f151 /src/gui
parentf52ca7838789a6910840597a929ecf6e0be9e1de (diff)
downloadplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.gz
plus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.bz2
plus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.xz
plus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.zip
Add missing const.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/button.h2
-rw-r--r--src/gui/windows/socialwindow.cpp2
-rw-r--r--src/gui/windows/statuswindow.cpp2
-rw-r--r--src/gui/windows/statuswindow.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h
index 015faf009..716ed7728 100644
--- a/src/gui/widgets/button.h
+++ b/src/gui/widgets/button.h
@@ -158,7 +158,7 @@ class Button final : public Widget,
void mouseReleased(MouseEvent& event) override final;
- void setDescription(std::string text)
+ void setDescription(const std::string &text)
{ mDescription = text; }
std::string getDescription() const A_WARN_UNUSED
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index 6a17514d6..4e22595a6 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -588,7 +588,7 @@ public:
being->setDamageTaken(0);
}
- Avatar* findAvatarbyName(std::string name)
+ Avatar* findAvatarbyName(const std::string &name)
{
std::vector<Avatar*> *const avatars = mBeings->getMembers();
if (!avatars)
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp
index f2473241c..a45c206f5 100644
--- a/src/gui/windows/statuswindow.cpp
+++ b/src/gui/windows/statuswindow.cpp
@@ -706,7 +706,7 @@ std::string StatusWindow::translateLetter(const char *const letters)
return std::string(buf);
}
-std::string StatusWindow::translateLetter2(std::string letters)
+std::string StatusWindow::translateLetter2(const std::string &letters)
{
if (letters.size() < 5)
return "";
diff --git a/src/gui/windows/statuswindow.h b/src/gui/windows/statuswindow.h
index 797e7647f..2beeea586 100644
--- a/src/gui/windows/statuswindow.h
+++ b/src/gui/windows/statuswindow.h
@@ -95,7 +95,7 @@ class StatusWindow final : public Window,
private:
static std::string translateLetter(const char *const letters);
- static std::string translateLetter2(std::string letters);
+ static std::string translateLetter2(const std::string &letters);
/**
* Status Part