[gnote] Replace std::string by Glib::ustring in Search
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace std::string by Glib::ustring in Search
- Date: Sat, 4 Feb 2017 18:03:18 +0000 (UTC)
commit 179ecebf7f5b6d02ef0a9fda08e37761f33d1713
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Feb 4 19:47:44 2017 +0200
Replace std::string by Glib::ustring in Search
src/search.cpp | 4 ++--
src/search.hpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/search.cpp b/src/search.cpp
index 4bb0e12..fcd3ef7 100644
--- a/src/search.cpp
+++ b/src/search.cpp
@@ -36,7 +36,7 @@ namespace gnote {
}
- Search::ResultsPtr Search::search_notes(const std::string & query, bool case_sensitive,
+ Search::ResultsPtr Search::search_notes(const Glib::ustring & query, bool case_sensitive,
const notebooks::Notebook::Ptr & selected_notebook)
{
Glib::ustring search_text = query;
@@ -96,7 +96,7 @@ namespace gnote {
}
for(auto iter : encoded_words) {
- if(note_text.find(iter) != std::string::npos) {
+ if(note_text.find(iter) != Glib::ustring::npos) {
continue;
}
else {
diff --git a/src/search.hpp b/src/search.hpp
index d4e1822..c358c65 100644
--- a/src/search.hpp
+++ b/src/search.hpp
@@ -69,7 +69,7 @@ public:
/// and a match number. If the search term is in the title,
/// number will be INT_MAX.
/// </returns>
- ResultsPtr search_notes(const std::string &, bool,
+ ResultsPtr search_notes(const Glib::ustring &, bool,
const notebooks::Notebook::Ptr & );
bool check_note_has_match(const Note::Ptr & note, const std::vector<Glib::ustring> & ,
bool match_case);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]