[gnote] Replace std::string by Glib::ustring in XmlConvert
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace std::string by Glib::ustring in XmlConvert
- Date: Fri, 27 Jan 2017 21:17:56 +0000 (UTC)
commit 91d8cc1374d748253a24f6253b134add73caf5df
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Jan 27 22:56:46 2017 +0200
Replace std::string by Glib::ustring in XmlConvert
src/sharp/xmlconvert.cpp | 7 +++----
src/sharp/xmlconvert.hpp | 7 ++++---
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/sharp/xmlconvert.cpp b/src/sharp/xmlconvert.cpp
index bbad047..c412b1f 100644
--- a/src/sharp/xmlconvert.cpp
+++ b/src/sharp/xmlconvert.cpp
@@ -1,6 +1,7 @@
/*
* gnote
*
+ * Copyright (C) 2017 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -24,20 +25,18 @@
-#include <string>
-
#include "sharp/xmlconvert.hpp"
#include "debug.hpp"
namespace sharp {
- DateTime XmlConvert::to_date_time(const std::string & date)
+ DateTime XmlConvert::to_date_time(const Glib::ustring & date)
{
return DateTime::from_iso8601(date);
}
- std::string XmlConvert::to_string(const DateTime & date)
+ Glib::ustring XmlConvert::to_string(const DateTime & date)
{
return date.to_iso8601();
}
diff --git a/src/sharp/xmlconvert.hpp b/src/sharp/xmlconvert.hpp
index 8216d79..336112c 100644
--- a/src/sharp/xmlconvert.hpp
+++ b/src/sharp/xmlconvert.hpp
@@ -1,6 +1,7 @@
/*
* gnote
*
+ * Copyright (C) 2017 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -28,7 +29,7 @@
#ifndef __SHARP_DATETIME_HPP_
#define __SHARP_DATETIME_HPP_
-#include <string>
+#include <glibmm/ustring.h>
#include "sharp/datetime.hpp"
@@ -37,8 +38,8 @@ namespace sharp {
class XmlConvert
{
public:
- static DateTime to_date_time(const std::string & date);
- static std::string to_string(const DateTime & date);
+ static DateTime to_date_time(const Glib::ustring & date);
+ static Glib::ustring to_string(const DateTime & date);
};
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]