Reset negatable switches correctly in wxCmdLineParser::Reset().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Jul 2011 13:49:51 +0000 (13:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Jul 2011 13:49:51 +0000 (13:49 +0000)
commitdd18cc6594b47ee51001b309c62744b1ed8419c7
treeb395145dca9af213f29682d2899438652ab33e0d
parent6607ee151a9907cf78f0584dc1090a1a5445ce88
Reset negatable switches correctly in wxCmdLineParser::Reset().

The "negated" flag of wxCmdLineOption struct was not reset by Reset() so
parsing a command line with a negatable option once influenced the result of
parsing it the next time because the old value was kept.

Do clear it now to allow calling Parse() several times without side effects.

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