[gnote] Replace std::string by Glib::ustring in NotebookApplicationAddin



commit abe0b7fb32bc0a729272156b024e4f267c89ac5a
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Fri Feb 17 21:20:09 2017 +0200

    Replace std::string by Glib::ustring in NotebookApplicationAddin

 src/notebooks/notebookapplicationaddin.cpp |   12 ++++++------
 src/notebooks/notebookapplicationaddin.hpp |    4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/notebooks/notebookapplicationaddin.cpp b/src/notebooks/notebookapplicationaddin.cpp
index b136230..a653b66 100644
--- a/src/notebooks/notebookapplicationaddin.cpp
+++ b/src/notebooks/notebookapplicationaddin.cpp
@@ -104,13 +104,13 @@ namespace gnote {
         return;
       }
 
-      std::string megaPrefix(Tag::SYSTEM_TAG_PREFIX);
+      Glib::ustring megaPrefix(Tag::SYSTEM_TAG_PREFIX);
       megaPrefix += Notebook::NOTEBOOK_TAG_PREFIX;
       if (!tag->is_system() || !Glib::str_has_prefix(tag->name(), megaPrefix)) {
         return;
       }
 
-      std::string notebookName =
+      Glib::ustring notebookName =
         sharp::string_substring(tag->name(), megaPrefix.size());
 
       Notebook::Ptr notebook =
@@ -121,17 +121,17 @@ namespace gnote {
 
 
 
-    void NotebookApplicationAddin::on_tag_removed(const NoteBase::Ptr& note,
-                                                  const std::string& normalizedTagName)
+    void NotebookApplicationAddin::on_tag_removed(const NoteBase::Ptr & note,
+                                                  const Glib::ustring & normalizedTagName)
     {
-      std::string megaPrefix(Tag::SYSTEM_TAG_PREFIX);
+      Glib::ustring megaPrefix(Tag::SYSTEM_TAG_PREFIX);
       megaPrefix += Notebook::NOTEBOOK_TAG_PREFIX;
 
       if (!Glib::str_has_prefix(normalizedTagName, megaPrefix)) {
         return;
       }
 
-      std::string normalizedNotebookName =
+      Glib::ustring normalizedNotebookName =
         sharp::string_substring(normalizedTagName, megaPrefix.size());
 
       Notebook::Ptr notebook =
diff --git a/src/notebooks/notebookapplicationaddin.hpp b/src/notebooks/notebookapplicationaddin.hpp
index 8212592..7db8e0e 100644
--- a/src/notebooks/notebookapplicationaddin.hpp
+++ b/src/notebooks/notebookapplicationaddin.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2012-2015 Aurimas Cernius
+ * Copyright (C) 2012-2015,2017 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -44,7 +44,7 @@ namespace gnote {
       NotebookApplicationAddin();
     private:
       void on_tag_added(const NoteBase&, const Tag::Ptr&);
-      void on_tag_removed(const NoteBase::Ptr&, const std::string&);
+      void on_tag_removed(const NoteBase::Ptr&, const Glib::ustring&);
       void on_note_added(const NoteBase::Ptr &);
       void on_note_deleted(const NoteBase::Ptr &);
       void on_new_notebook_action(const Glib::VariantBase&);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]