Fix comparisons of char and wchar_t with wxUniChar[Ref].
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Jul 2012 16:49:36 +0000 (16:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Jul 2012 16:49:36 +0000 (16:49 +0000)
commit6d93e28adf4824a4e6a485e72b1fa64a4698403d
tree8f5057fab35f7489ffe4ff9e8510b69234dfcedc
parentd50905f7618df5f6fa54bdabcda7f69f54ffecf3
Fix comparisons of char and wchar_t with wxUniChar[Ref].

Comparisons didn't work correctly in the other direction as they were not
reversed as needed. Fix this by adding wxDEFINE_COMPARISON_REV() macro which
defines comparisons in terms of the reverse operations and use it for both
wxUniChar and wxUniCharRef.

Closes #14547.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/defs.h
include/wx/unichar.h
tests/strings/unichar.cpp