summaryrefslogtreecommitdiff
path: root/project2/fileStrmVarWriter.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-16 16:09:32 +0000
committerrandomdan <randomdan@localhost>2011-02-16 16:09:32 +0000
commitfceb7a7b04de5c91adcd041c87642dc11c1a0fd4 (patch)
treede350f7b05dd7b6ce2e97ee44443452ccfa77b3d /project2/fileStrmVarWriter.cpp
parentTidied up XML loader using boost::multi_index (diff)
downloadproject2-fceb7a7b04de5c91adcd041c87642dc11c1a0fd4.tar.bz2
project2-fceb7a7b04de5c91adcd041c87642dc11c1a0fd4.tar.xz
project2-fceb7a7b04de5c91adcd041c87642dc11c1a0fd4.zip
Make CurlHandle throw an exception on failure
Improve error messages almost everywhere Allow setting of platform through the options system Allow specifying query params on the console Fix file stream writer's string support for strings containing multibyte chars
Diffstat (limited to 'project2/fileStrmVarWriter.cpp')
-rw-r--r--project2/fileStrmVarWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/fileStrmVarWriter.cpp b/project2/fileStrmVarWriter.cpp
index f3812ce..8b5b2ec 100644
--- a/project2/fileStrmVarWriter.cpp
+++ b/project2/fileStrmVarWriter.cpp
@@ -46,10 +46,10 @@ void FileStreamVariableWriter::operator()(const double & i) const {
fprintf(out, "%g", i);
}
void FileStreamVariableWriter::operator()(const Glib::ustring & i) const {
- fprintf(out, "'%.*s'", i.length(), i.c_str());
+ fprintf(out, "'%.*s'", i.bytes(), i.c_str());
}
void FileStreamVariableWriter::operator()(const boost::shared_ptr<const Glib::ustring> & i) const {
- fprintf(out, "'%.*s'", i->length(), i->c_str());
+ fprintf(out, "'%.*s'", i->bytes(), i->c_str());
}
void FileStreamVariableWriter::operator()(const boost::posix_time::ptime & i) const {
fprintf(out, "[%s]", boost::posix_time::to_iso_extended_string(i).c_str());