]> git.saurik.com Git - wxWidgets.git/commit
Fix wxMotif compilation with g++ 4.4.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Jul 2010 11:33:09 +0000 (11:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Jul 2010 11:33:09 +0000 (11:33 +0000)
commitf4ad6505dad41a3dee60acd1676cb08fe9a429b3
tree6891059e78b7dd47052c3ee82cf7fa0ba231bf31
parentc82f9bcf7f14f903b984022de5aebd96790b1f7c
Fix wxMotif compilation with g++ 4.4.

wxMenu::CreateMenu() parameter called "index" was mistakenly wrapped in
WXUNUSED() making it invisible inside the function body and the (BSD string
function) index() was used instead. This somehow compiled before but not with
g++ 4.4. In any case, the code was wrong even when it did compile.

Remove WXUNUSED() from the parameter and also rename it to avoid clashes with
(semi-)standard function which can also be defined as macro on some systems.

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