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



commit 282b70e56be360e06db5be82bb0cca3875c7cc60
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Feb 12 16:19:52 2017 +0200

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

 src/gnome_keyring/keyringexception.hpp |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome_keyring/keyringexception.hpp b/src/gnome_keyring/keyringexception.hpp
index 5f6f94b..f7606ac 100644
--- a/src/gnome_keyring/keyringexception.hpp
+++ b/src/gnome_keyring/keyringexception.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2012-2013 Aurimas Cernius
+ * Copyright (C) 2012-2013,2017 Aurimas Cernius
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,6 +23,8 @@
 
 #include <stdexcept>
 
+#include <glibmm/ustring.h>
+
 #include "base/macros.hpp"
 
 
@@ -33,7 +35,7 @@ class KeyringException
   : public std::exception
 {
 public:
-  KeyringException(const std::string & msg)
+  KeyringException(const Glib::ustring & msg)
     : m_what(msg)
     {}
   virtual ~KeyringException() throw() override {}
@@ -42,7 +44,7 @@ public:
       return m_what.c_str();
     }
 private:
-  std::string m_what;
+  Glib::ustring m_what;
 };
 
 }


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