]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/arrimpl.cpp
don't use GetParent() in GetParentForModalDialog() itself as it can be called before...
[wxWidgets.git] / include / wx / arrimpl.cpp
index d0e3a7f5cdead6ceaca002c28920b6beecad1135..d9a53a494cffd06623a02a3d826e5790cc2e99c3 100644 (file)
@@ -98,7 +98,7 @@ int name::Index(const T& Item, bool bFromEnd) const                           \
       size_t ui = size() - 1;                                                 \
       do {                                                                    \
         if ( (T*)base_array::operator[](ui) == &Item )                        \
-          return ui;                                                          \
+          return static_cast<int>(ui);                                     \
         ui--;                                                                 \
       }                                                                       \
       while ( ui != 0 );                                                      \
@@ -107,7 +107,7 @@ int name::Index(const T& Item, bool bFromEnd) const                           \
   else {                                                                      \
     for( size_t ui = 0; ui < size(); ui++ ) {                                 \
       if( (T*)base_array::operator[](ui) == &Item )                           \
-        return ui;                                                            \
+        return static_cast<int>(ui);                                       \
     }                                                                         \
   }                                                                           \
                                                                               \