Commit 176d607f authored by cutealien's avatar cutealien

cleaner solution for xml-writing speedup.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4176 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 5703a48a
Changes in 1.8 (??.??.2011) Changes in 1.8 (??.??.2011)
- speedup for xml-writing.
- CFileSystem::removeFileArchive now checking for normalized path - CFileSystem::removeFileArchive now checking for normalized path
- Fix zip's with passwords on 64-bit systems (thx @ Dr. Gladman for writing the bugfix) - Fix zip's with passwords on 64-bit systems (thx @ Dr. Gladman for writing the bugfix)
......
...@@ -205,8 +205,8 @@ void CXMLWriter::writeText(const wchar_t* text) ...@@ -205,8 +205,8 @@ void CXMLWriter::writeText(const wchar_t* text)
if (!File || !text) if (!File || !text)
return; return;
core::stringw s(text); core::stringw s;
s = L""; // passing text and then resetting it is a (little ackward) way to reserve memory for the string to avoid lots of reallocations below. s.reserve(wcslen(text));
const wchar_t* p = text; const wchar_t* p = text;
while(*p) while(*p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment