diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-27 18:05:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-27 18:05:47 +0300 |
commit | 053891ca29f6cbbbf690d16fa55e4414b99d1d2c (patch) | |
tree | 3fe5b2c127e3fe1c5a87930960c4504326cdbc26 /src | |
parent | 9cc52ed1177302c5f43b1eac165a23548f256499 (diff) | |
download | mv-053891ca29f6cbbbf690d16fa55e4414b99d1d2c.tar.gz mv-053891ca29f6cbbbf690d16fa55e4414b99d1d2c.tar.bz2 mv-053891ca29f6cbbbf690d16fa55e4414b99d1d2c.tar.xz mv-053891ca29f6cbbbf690d16fa55e4414b99d1d2c.zip |
improve textdialog.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/textdialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/textdialog.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/textdialog.cpp b/src/gui/textdialog.cpp index 4df04a2ed..773949e6e 100644 --- a/src/gui/textdialog.cpp +++ b/src/gui/textdialog.cpp @@ -116,7 +116,7 @@ const std::string &TextDialog::getText() const return mPasswordField->getText(); } -void TextDialog::setText(std::string text) +void TextDialog::setText(const std::string &text) { if (mTextField) mTextField->setText(text); diff --git a/src/gui/textdialog.h b/src/gui/textdialog.h index d91cc2129..fddf3947e 100644 --- a/src/gui/textdialog.h +++ b/src/gui/textdialog.h @@ -61,12 +61,12 @@ public: */ const std::string &getText() const A_WARN_UNUSED; - void setText(std::string text); + void setText(const std::string &text); static bool isActive() A_WARN_UNUSED { return instances; } - void close(); + void close() override; private: static int instances; |