diff --git a/include/wx/selstore.h b/include/wx/selstore.h index 02545e12b3..2cf420dc63 100644 --- a/include/wx/selstore.h +++ b/include/wx/selstore.h @@ -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(-1); + static const unsigned NO_SELECTION; // get the first selected item in index order, return NO_SELECTION if none unsigned GetFirstSelectedItem(IterationState& cookie) const; diff --git a/src/generic/selstore.cpp b/src/generic/selstore.cpp index 5ce9e5cd41..af2dd12a41 100644 --- a/src/generic/selstore.cpp +++ b/src/generic/selstore.cpp @@ -28,6 +28,8 @@ // wxSelectionStore // ============================================================================ +const unsigned wxSelectionStore::NO_SELECTION = static_cast(-1); + // ---------------------------------------------------------------------------- // tests // ----------------------------------------------------------------------------