summaryrefslogtreecommitdiffstats
path: root/src/io/inkscapestream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/inkscapestream.cpp')
-rw-r--r--src/io/inkscapestream.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/io/inkscapestream.cpp b/src/io/inkscapestream.cpp
index 7afc3a175..63cea38ab 100644
--- a/src/io/inkscapestream.cpp
+++ b/src/io/inkscapestream.cpp
@@ -496,19 +496,18 @@ Writer &BasicWriter::writeChar(char ch)
/**
* Writes the specified unicode string to this output writer.
*/
-Writer &BasicWriter::writeUString(Glib::ustring &str)
+Writer &BasicWriter::writeUString(const Glib::ustring &str)
{
- std::string tmp = str.raw();
- writeStdString(tmp);
+ writeStdString(str.raw());
return *this;
}
/**
* Writes the specified standard string to this output writer.
*/
-Writer &BasicWriter::writeStdString(std::string &str)
+Writer &BasicWriter::writeStdString(const std::string &str)
{
- for (auto it = str.begin(); it != str.end(); it++) {
+ for (auto it = str.begin(); it != str.end(); ++it) {
put(*it);
}
return *this;