diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-09 14:50:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-09 14:50:46 +0300 |
commit | 535951ad315101546f54071c56c3ab1ec6a61df3 (patch) | |
tree | 1dfd03918874f97a4e9dac2be7b555848ae33ed9 /src | |
parent | 85fbff517d7f2bd6a6e26037266702bd2e16e1e9 (diff) | |
download | mv-535951ad315101546f54071c56c3ab1ec6a61df3.tar.gz mv-535951ad315101546f54071c56c3ab1ec6a61df3.tar.bz2 mv-535951ad315101546f54071c56c3ab1ec6a61df3.tar.xz mv-535951ad315101546f54071c56c3ab1ec6a61df3.zip |
Use references in some guichan calls.
Diffstat (limited to 'src')
-rw-r--r-- | src/guichan/include/guichan/widgets/textbox.hpp | 2 | ||||
-rw-r--r-- | src/guichan/widgets/textbox.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/guichan/include/guichan/widgets/textbox.hpp b/src/guichan/include/guichan/widgets/textbox.hpp index 6393306d8..ef12e36fe 100644 --- a/src/guichan/include/guichan/widgets/textbox.hpp +++ b/src/guichan/include/guichan/widgets/textbox.hpp @@ -203,7 +203,7 @@ namespace gcn * * @param row The row to add. */ - virtual void addRow(const std::string row); + virtual void addRow(const std::string &row); /** * Checks if the text box is opaque. An opaque text box will draw diff --git a/src/guichan/widgets/textbox.cpp b/src/guichan/widgets/textbox.cpp index fc133ba9b..2c6066976 100644 --- a/src/guichan/widgets/textbox.cpp +++ b/src/guichan/widgets/textbox.cpp @@ -319,7 +319,7 @@ namespace gcn return mEditable; } - void TextBox::addRow(const std::string row) + void TextBox::addRow(const std::string &row) { mTextRows.push_back(row); adjustSize(); |