diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-07 17:15:48 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-07 17:15:48 +0200 |
commit | cd94bfc187d6a716f00d218e514409d8e65603c4 (patch) | |
tree | 80c88c145af78acf3f1b440963693b1a93cbd887 /include | |
parent | ca0e381e2a248170f71c236a5070ce349f0206ea (diff) |
Matrix: fix posting messages with non-ascii characters
Diffstat (limited to 'include')
-rw-r--r-- | include/Entry.hpp | 2 | ||||
-rw-r--r-- | include/SearchBar.hpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/Entry.hpp b/include/Entry.hpp index 2ef6b04..23535e4 100644 --- a/include/Entry.hpp +++ b/include/Entry.hpp @@ -13,7 +13,7 @@ namespace sf { namespace QuickMedia { // Return true to clear the text - using OnEntrySubmit = std::function<bool(const sf::String& text)>; + using OnEntrySubmit = std::function<bool(const std::string& text)>; class Entry { public: diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index 8a1a8a0..e5245be 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -14,11 +14,11 @@ namespace sf { } namespace QuickMedia { - using TextUpdateCallback = std::function<void(const sf::String &text)>; + using TextUpdateCallback = std::function<void(const std::string &text)>; // Return true to consume the search (clear the search field) - using TextSubmitCallback = std::function<bool(const sf::String &text)>; + using TextSubmitCallback = std::function<bool(const std::string &text)>; using TextBeginTypingCallback = std::function<void()>; - using AutocompleteRequestCallback = std::function<void(const sf::String &text)>; + using AutocompleteRequestCallback = std::function<void(const std::string &text)>; class SearchBar { public: |