From d1132f0e4b4952fc9718d748e33aa43a6f0fb67f Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 9 Aug 2011 19:46:16 +0000 Subject: Strip out some dead wood Fix a few small things But many fix the big idiot problem with storing state in the rowset instance --- project2/fileStrmVarWriter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'project2/fileStrmVarWriter.cpp') diff --git a/project2/fileStrmVarWriter.cpp b/project2/fileStrmVarWriter.cpp index 1af99dc..51fb487 100644 --- a/project2/fileStrmVarWriter.cpp +++ b/project2/fileStrmVarWriter.cpp @@ -49,9 +49,11 @@ void FileStreamVariableWriter::operator()(const double & i) const { fprintf(out, "%g", i); } void FileStreamVariableWriter::operator()(const Glib::ustring & i) const { + fputc('\'', out); if (fwrite(i.c_str(), i.bytes(), 1, out) < 1) { // Care much? None of the others check. } + fputc('\'', out); } void FileStreamVariableWriter::operator()(const boost::posix_time::ptime & i) const { fprintf(out, "[%s]", boost::posix_time::to_iso_extended_string(i).c_str()); -- cgit v1.2.3