From 366a8063730aa7ae696bcb9cf56eafd13d43dfc0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 8 Feb 2009 00:44:10 +0000 Subject: So many updates. I recommend using the new FString iterators instead of direct indexing. It is now many times faster, and requires less overhead. Also, more stuff iterator related in every class. More on that later. --- src/tafwriter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tafwriter.cpp') diff --git a/src/tafwriter.cpp b/src/tafwriter.cpp index b0f5def..82d39e5 100644 --- a/src/tafwriter.cpp +++ b/src/tafwriter.cpp @@ -104,7 +104,10 @@ void Bu::TafWriter::writeString( const Bu::FString &str ) sOut.write(buf, 4 ); } else - sOut.write( s, 1 ); + { + const char buf = *s; + sOut.write( &buf, 1 ); + } } sOut.write("\"", 1 ); } -- cgit v1.2.3