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



commit a1c95b24f1a0c5ca0c9be0ffb7482d72f4bee6eb
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Feb 4 19:55:30 2017 +0200

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

 src/undo.cpp |    4 ++--
 src/undo.hpp |    3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/undo.cpp b/src/undo.cpp
index c5f72e0..b1f11ea 100644
--- a/src/undo.cpp
+++ b/src/undo.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2010,2016 Aurimas Cernius
+ * Copyright (C) 2010,2016-2017 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -163,7 +163,7 @@ namespace gnote {
 
 
   InsertAction::InsertAction(const Gtk::TextIter & start, 
-                             const std::string & , int length,
+                             const Glib::ustring & , int length,
                              const ChopBuffer::Ptr & chop_buf)
     : m_index(start.get_offset() - length)
     , m_is_paste(length > 1)
diff --git a/src/undo.hpp b/src/undo.hpp
index 3fc1565..cb176cd 100644
--- a/src/undo.hpp
+++ b/src/undo.hpp
@@ -24,7 +24,6 @@
 #define __UNDO_HPP_
 
 #include <list>
-#include <string>
 #include <stack>
 
 #include <sigc++/signal.h>
@@ -115,7 +114,7 @@ class InsertAction
   : public SplitterAction
 {
 public:
-  InsertAction(const Gtk::TextIter & start, const std::string & text, int length,
+  InsertAction(const Gtk::TextIter & start, const Glib::ustring & text, int length,
                const ChopBuffer::Ptr & chop_buf);
   virtual void undo(Gtk::TextBuffer * buffer) override;
   virtual void redo(Gtk::TextBuffer * buffer) override;


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