Add wxLoadUserResource() overload not copying the resource data.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Apr 2010 16:53:21 +0000 (16:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Apr 2010 16:53:21 +0000 (16:53 +0000)
commitc5ba48512424b7e543cadfccef304fe170bdf910
treeaa8901914fc48dfb4c4383bfa924b55f7bee53e5
parentea85e5e0c63a731b3b3d3cfb052d16c1c86e56ac
Add wxLoadUserResource() overload not copying the resource data.

The existing wxLoadUserResource() copies the resource data which is often
unnecessary. Add another overload which just returns the pointer directly to
the resource data.

Also move the function into base from core as it can be useful for the console
applications as well.

Finally, define wxUserResourceStr used by this function only in the same file
where the function itself is defined instead of datacmn.cpp.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/utils.h
src/common/datacmn.cpp
src/msw/utils.cpp
src/msw/utilsgui.cpp