aboutsummaryrefslogtreecommitdiff
path: root/src/Text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text.cpp')
-rw-r--r--src/Text.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text.cpp b/src/Text.cpp
index 2e735ab..7859c7a 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -55,12 +55,12 @@ namespace QuickMedia
setString(std::move(_str));
}
- void Text::setString(sf::String str)
+ void Text::setString(const sf::String &str)
{
//if(str != this->str)
//{
size_t prev_str_size = this->str.getSize();
- this->str = std::move(str);
+ this->str = str;
dirty = true;
dirtyText = true;
if((int)this->str.getSize() < caretIndex || prev_str_size == 0)
@@ -76,8 +76,8 @@ namespace QuickMedia
return str;
}
- void Text::appendText(sf::String str) {
- this->str += std::move(str);
+ void Text::appendText(const sf::String &str) {
+ this->str += str;
dirty = true;
dirtyText = true;
}