Make calling wxLog::IsAllowedTraceMask() safe during static init time.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Jan 2010 12:22:42 +0000 (12:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Jan 2010 12:22:42 +0000 (12:22 +0000)
commit55e5154d2cc5f994c34b128cd05fdc14f2c2fc43
treebd4a2f03d321a641ddb1263151b7c7a7736d535c
parent595c23b34eb8fb4b37e23fe744623176783581f1
Make calling wxLog::IsAllowedTraceMask() safe during static init time.

Although using wxLog during statics initialization is not recommended, it may
still happen, possibly indirectly so make it work correctly by using an
accessor function for the array of trace masks which ensures that this array
is always correctly initialized before being used.

Closes #11592.

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