[gnote] Replace std::string by Glib::ustring in Exception
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace std::string by Glib::ustring in Exception
- Date: Fri, 27 Jan 2017 21:17:00 +0000 (UTC)
commit 06db48337cfb747e5a494d58e7d6f4066b27f6d9
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Jan 27 21:48:08 2017 +0200
Replace std::string by Glib::ustring in Exception
src/sharp/exception.hpp | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/sharp/exception.hpp b/src/sharp/exception.hpp
index be4d987..513f7c8 100644
--- a/src/sharp/exception.hpp
+++ b/src/sharp/exception.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2013 Aurimas Cernius
+ * Copyright (C) 2013,2017 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -30,7 +30,8 @@
#define __SHARP_EXCEPTION_HPP_
#include <exception>
-#include <string>
+
+#include <glibmm/ustring.h>
#include "base/macros.hpp"
@@ -41,7 +42,7 @@ class Exception
: public std::exception
{
public:
- Exception(const std::string & m) throw()
+ Exception(const Glib::ustring & m) throw()
: m_what(m)
{
}
@@ -50,7 +51,7 @@ public:
virtual const char *what() const throw() override;
private:
- std::string m_what;
+ Glib::ustring m_what;
};
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]