[gnote] Replace std::string by Glib::ustring in XsltArgumentList
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace std::string by Glib::ustring in XsltArgumentList
- Date: Fri, 27 Jan 2017 21:18:06 +0000 (UTC)
commit d0dc5003154e2bcd2dc5b77122f6743ec282a0bf
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Jan 27 23:11:05 2017 +0200
Replace std::string by Glib::ustring in XsltArgumentList
src/sharp/xsltargumentlist.cpp | 2 +-
src/sharp/xsltargumentlist.hpp | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/sharp/xsltargumentlist.cpp b/src/sharp/xsltargumentlist.cpp
index d7611b1..682f7e7 100644
--- a/src/sharp/xsltargumentlist.cpp
+++ b/src/sharp/xsltargumentlist.cpp
@@ -33,7 +33,7 @@
namespace sharp {
-void XsltArgumentList::add_param(const char* name, const char * /*uri*/, const std::string & value)
+void XsltArgumentList::add_param(const char* name, const char * /*uri*/, const Glib::ustring & value)
{
Glib::ustring pv = Glib::ustring::compose("\"%1\"", value);
m_args.push_back(std::make_pair(name, pv));
diff --git a/src/sharp/xsltargumentlist.hpp b/src/sharp/xsltargumentlist.hpp
index 586e677..10f2abc 100644
--- a/src/sharp/xsltargumentlist.hpp
+++ b/src/sharp/xsltargumentlist.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,20 +30,21 @@
#define __SHARP_XSLTARGUMENTLIST_HPP_
#include <list>
-#include <string>
#include <utility>
+#include <glibmm/ustring.h>
+
namespace sharp {
/** argument list for %XslTransform */
class XsltArgumentList
{
public:
- typedef std::list<std::pair<std::string,std::string> > container_t;
+ typedef std::list<std::pair<Glib::ustring,Glib::ustring> > container_t;
typedef container_t::const_iterator const_iterator;
/** add a string parameter */
- void add_param(const char* name, const char *uri, const std::string &);
+ void add_param(const char* name, const char *uri, const Glib::ustring &);
/** add a bool parameter */
void add_param(const char* name, const char *uri, bool);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]