aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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: