]> git.saurik.com Git - wxWidgets.git/commit - src/common/string.cpp
Make it possible to use wxCharBuffer during program initialization.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Feb 2010 11:09:26 +0000 (11:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Feb 2010 11:09:26 +0000 (11:09 +0000)
commitb96a56e60e65e17704fc66ae9cdbb2444ac987d8
treeedbe31473beb4e571fb02c3e6eac5d9a69009664
parent321f760bc3a6c6e5acb8807de00f4b502568e268
Make it possible to use wxCharBuffer during program initialization.

wxCharBuffer might be used during static initialization, even if only
implicitly. E.g. it is used by wxString::Format() which can be used to
initialize a global string. But it uses the global s_untypedNullData variable
might not be initialized yet resulting in mysterious failures.

Fix this in the usual way by wrapping access to the variable via a function.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/buffer.h
src/common/string.cpp