]> git.saurik.com Git - wxWidgets.git/commit - src/common/strconv.cpp
Initialize wxCSConv immediately instead of deferring it.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Nov 2010 12:09:22 +0000 (12:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Nov 2010 12:09:22 +0000 (12:09 +0000)
commit6c4d607e60293cdd7e9774ad0a5af224882d91e5
treef59556ba632e43e1fc7cd9baf6663baaa3674c84
parent93fdbfb70d67459f5b284ee9ca7061aeffee26d3
Initialize wxCSConv immediately instead of deferring it.

Deferred initialization code was not MT-safe and just wasn't that useful
anyhow because it is rare to create a wxCSConv object and not use it
afterwards.

Remove the deferred initialization logic and create the real conversion used
by wxCSConv immediately in its ctor.

Also improve the comments by clearly explaining the possible values of
wxCSConv::m_name and m_encoding.

Closes #12630.

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