[gnote] Replace std::string by Glib::ustring in IGnote
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace std::string by Glib::ustring in IGnote
- Date: Mon, 30 Jan 2017 21:02:26 +0000 (UTC)
commit f9f7800be61c5fb80cadd21138db60bea8128878
Author: Aurimas Černius <aurisc4 gmail com>
Date: Mon Jan 30 22:51:22 2017 +0200
Replace std::string by Glib::ustring in IGnote
src/ignote.cpp | 12 ++++++------
src/ignote.hpp | 10 +++++-----
2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/ignote.cpp b/src/ignote.cpp
index a655219..fd1178f 100644
--- a/src/ignote.cpp
+++ b/src/ignote.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2013 Aurimas Cernius
+ * Copyright (C) 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
@@ -28,24 +28,24 @@ namespace gnote {
IGnote::~IGnote()
{}
-std::string IGnote::cache_dir()
+Glib::ustring IGnote::cache_dir()
{
return Glib::get_user_cache_dir() + "/gnote";
}
-std::string IGnote::conf_dir()
+Glib::ustring IGnote::conf_dir()
{
return Glib::get_user_config_dir() + "/gnote";
}
-std::string IGnote::data_dir()
+Glib::ustring IGnote::data_dir()
{
return Glib::get_user_data_dir() + "/gnote";
}
-std::string IGnote::old_note_dir()
+Glib::ustring IGnote::old_note_dir()
{
- std::string home_dir = Glib::get_home_dir();
+ Glib::ustring home_dir = Glib::get_home_dir();
if(home_dir.empty()) {
home_dir = Glib::get_current_dir();
diff --git a/src/ignote.hpp b/src/ignote.hpp
index ee36dc4..e2a2799 100644
--- a/src/ignote.hpp
+++ b/src/ignote.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2013,2016 Aurimas Cernius
+ * Copyright (C) 2013,2016-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
@@ -29,10 +29,10 @@ class IGnote
: public base::Singleton<IGnote>
{
public:
- static std::string cache_dir();
- static std::string conf_dir();
- static std::string data_dir();
- static std::string old_note_dir();
+ static Glib::ustring cache_dir();
+ static Glib::ustring conf_dir();
+ static Glib::ustring data_dir();
+ static Glib::ustring old_note_dir();
virtual ~IGnote();
virtual MainWindow & get_main_window() = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]