Don't define wxSelectionStore::NO_SELECTION inline.

This results in link errors under Unix for some reason.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-09-27 23:29:32 +00:00
parent 52476a443e
commit 908bf66242
2 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public:
typedef size_t IterationState;
// constant representing absence of selection and hence end of iteration
static const unsigned NO_SELECTION = static_cast<unsigned>(-1);
static const unsigned NO_SELECTION;
// get the first selected item in index order, return NO_SELECTION if none
unsigned GetFirstSelectedItem(IterationState& cookie) const;

View File

@ -28,6 +28,8 @@
// wxSelectionStore
// ============================================================================
const unsigned wxSelectionStore::NO_SELECTION = static_cast<unsigned>(-1);
// ----------------------------------------------------------------------------
// tests
// ----------------------------------------------------------------------------