[gnote] Replace std::string by Glib::ustring in StreamWriter
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace std::string by Glib::ustring in StreamWriter
- Date: Fri, 27 Jan 2017 21:17:36 +0000 (UTC)
commit e2a0d9d0a73a09f64e18e4a8aed8803f3c299376
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Jan 27 22:36:43 2017 +0200
Replace std::string by Glib::ustring in StreamWriter
src/sharp/streamwriter.cpp | 6 +++---
src/sharp/streamwriter.hpp | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/sharp/streamwriter.cpp b/src/sharp/streamwriter.cpp
index 651b34a..e7ec642 100644
--- a/src/sharp/streamwriter.cpp
+++ b/src/sharp/streamwriter.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2012 Aurimas Cernius
+ * Copyright (C) 2012,2017 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -46,13 +46,13 @@ StreamWriter::~StreamWriter()
}
}
-void StreamWriter::init(const std::string & filename)
+void StreamWriter::init(const Glib::ustring & filename)
{
m_file = fopen(filename.c_str(), "wb");
}
-void StreamWriter::write(const std::string & text)
+void StreamWriter::write(const Glib::ustring & text)
{
fprintf(m_file, "%s", text.c_str());
}
diff --git a/src/sharp/streamwriter.hpp b/src/sharp/streamwriter.hpp
index 938da92..598f341 100644
--- a/src/sharp/streamwriter.hpp
+++ b/src/sharp/streamwriter.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2012 Aurimas Cernius
+ * Copyright (C) 2012,2017 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -30,10 +30,10 @@
#include <stdio.h>
-#include <string>
-
#include <libxml/tree.h>
+#include <glibmm/ustring.h>
+
namespace sharp {
@@ -43,14 +43,14 @@ public:
StreamWriter();
~StreamWriter();
- void init(const std::string &);
+ void init(const Glib::ustring &);
FILE * file()
{
return m_file;
}
- void write(const std::string & );
+ void write(const Glib::ustring & );
void write(const xmlBufferPtr);
void close();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]