diff options
Diffstat (limited to 'include/Entry.hpp')
-rw-r--r-- | include/Entry.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Entry.hpp b/include/Entry.hpp index 22680b5..1ee237b 100644 --- a/include/Entry.hpp +++ b/include/Entry.hpp @@ -24,11 +24,11 @@ namespace QuickMedia { void set_single_line(bool single_line); void set_editable(bool editable); - void set_text(std::string text); + void set_text(const std::string &text); void set_position(const sf::Vector2f &pos); void set_max_width(float width); void move_caret_to_end(); - void append_text(std::string str); + void append_text(const std::string &str); void replace(size_t start_index, size_t length, const sf::String &insert_str); int get_caret_index() const; |