summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2011-03-29 10:58:47 +0200
committerMurray Cumming <murrayc@murrayc.com>2011-03-29 10:58:47 +0200
commit00a2fa0f7f7fa2b998e8812e677a239f5d62ec49 (patch)
treeb04cc2a46886f121208ca9bf318a9da8ac342356
parent9ee8e6c39f15a0c7731ae475313f51128df322d4 (diff)
downloadglibmm-00a2fa0f7f7fa2b998e8812e677a239f5d62ec49.tar.gz
FileUtils: Correct my previous commit.
* glib/src/fileutils.ccg: * glib/src/iochannel.ccg: Do not create a ustring instead of a std::string.
-rw-r--r--ChangeLog7
-rw-r--r--glib/src/fileutils.ccg3
-rw-r--r--glib/src/iochannel.ccg5
3 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index a140c6c4..1b505a9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-03-29 Murray Cumming <murrayc@murrayc-desktop>
+
+ FileUtils: Correct my previous commit.
+
+ * glib/src/fileutils.ccg:
+ * glib/src/iochannel.ccg: Do not create a ustring instead of a std::string.
+
2011-03-29 Murray Cumming <murrayc@murrayc.com>
Use the utility functions for creating strings.
diff --git a/glib/src/fileutils.ccg b/glib/src/fileutils.ccg
index 0fde698a..d3690b84 100644
--- a/glib/src/fileutils.ccg
+++ b/glib/src/fileutils.ccg
@@ -95,7 +95,7 @@ DirIterator::DirIterator(GDir* gobject, const char* current)
std::string DirIterator::operator*() const
{
- return convert_const_gchar_ptr_to_ustring(current_);
+ return convert_const_gchar_ptr_to_stdstring(current_);
}
DirIterator& DirIterator::operator++()
@@ -199,4 +199,3 @@ file_set_contents (const std::string& filename, const std::string& contents)
}
} // namespace Glib
-
diff --git a/glib/src/iochannel.ccg b/glib/src/iochannel.ccg
index 9405727e..95719868 100644
--- a/glib/src/iochannel.ccg
+++ b/glib/src/iochannel.ccg
@@ -289,7 +289,7 @@ IOStatus IOChannel::set_encoding(const std::string& encoding)
std::string IOChannel::get_encoding() const
{
const char *const encoding = g_io_channel_get_encoding(gobject_);
- return convert_const_gchar_ptr_to_ustring(encoding);
+ return convert_const_gchar_ptr_to_stdstring(encoding);
}
void IOChannel::set_line_term(const std::string& term)
@@ -472,7 +472,7 @@ GIOStatus GlibmmIOChannel::io_close(GIOChannel* channel, GError** err)
{
Glib::exception_handlers_invoke();
}
-
+
return G_IO_STATUS_ERROR;
}
@@ -545,4 +545,3 @@ GIOFlags GlibmmIOChannel::io_get_flags(GIOChannel* channel)
}
} // namespace Glib
-