aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-07 17:15:48 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-07 17:15:48 +0200
commitcd94bfc187d6a716f00d218e514409d8e65603c4 (patch)
tree80c88c145af78acf3f1b440963693b1a93cbd887 /include
parentca0e381e2a248170f71c236a5070ce349f0206ea (diff)
Matrix: fix posting messages with non-ascii characters
Diffstat (limited to 'include')
-rw-r--r--include/Entry.hpp2
-rw-r--r--include/SearchBar.hpp6
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: