]> git.saurik.com Git - wxWidgets.git/commit - src/xrc/xmlres.cpp
Simplify wxIdRange code by using new XRCID_Assign() function.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 Nov 2011 17:40:49 +0000 (17:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 Nov 2011 17:40:49 +0000 (17:40 +0000)
commitd265ec6b0ebb945f23172f016782141adae33297
treee6f2814e850025a8ee8bb2f065f06bcbf749b6b9
parent6bb81c8e1ae2f7a0acc2535ebdfa776512cfe26f
Simplify wxIdRange code by using new XRCID_Assign() function.

Only traverse the id hash once in XRCID_Assign() instead of using
RemoveXRCIDEntry() to delete the old entry (which usually doesn't exist so
this traversed the entire hash) followed by XRCID_Lookup() to create a new one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/xrc/xmlres.cpp