[Scummvm-cvs-logs] SF.net SVN: scummvm:[44562] scummvm/trunk/common/str.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Sat Oct 3 22:26:36 CEST 2009
Revision: 44562
http://scummvm.svn.sourceforge.net/scummvm/?rev=44562&view=rev
Author: wjpalenstijn
Date: 2009-10-03 20:26:30 +0000 (Sat, 03 Oct 2009)
Log Message:
-----------
Use buffer in Common::String::printf slightly more efficiently
Modified Paths:
--------------
scummvm/trunk/common/str.cpp
Modified: scummvm/trunk/common/str.cpp
===================================================================
--- scummvm/trunk/common/str.cpp 2009-10-03 20:25:27 UTC (rev 44561)
+++ scummvm/trunk/common/str.cpp 2009-10-03 20:26:30 UTC (rev 44562)
@@ -457,6 +457,9 @@
do {
size *= 2;
output.ensureCapacity(size-1, false);
+ assert(!output.isStorageIntern());
+ size = output._extern._capacity;
+
va_start(va, fmt);
len = vsnprintf(output._str, size, fmt, va);
va_end(va);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list