]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
Added stub for the new pure virtual DoInsert method
[wxWidgets.git] / src / stc / PlatWX.cpp
index 80f8f795ce95279d8ebf75ffaca32a66a3546f8d..bcb44e5bc34d39b20b503c08721a019df861af86 100644 (file)
@@ -575,13 +575,6 @@ void SurfaceImpl::FlushCachedState() {
 
 void SurfaceImpl::SetUnicodeMode(bool unicodeMode_) {
     unicodeMode=unicodeMode_;
-#if wxUSE_UNICODE
-    wxASSERT_MSG(unicodeMode == wxUSE_UNICODE,
-                 wxT("Only unicode may be used when wxUSE_UNICODE is on."));
-#else
-    wxASSERT_MSG(unicodeMode == wxUSE_UNICODE,
-                 wxT("Only non-unicode may be used when wxUSE_UNICODE is off."));
-#endif
 }
 
 void SurfaceImpl::SetDBCSMode(int codePage) {
@@ -1009,7 +1002,7 @@ void ListBoxImpl::RegisterImage(int type, const char *xpm_data) {
 
     // do we need to extend the mapping array?
     wxArrayInt& itm = *imgTypeMap;
-    if ( itm.GetCount() < type+1)
+    if ( itm.GetCount() < (size_t)type+1)
         itm.Add(-1, type - itm.GetCount() + 1);
 
     // Add an item that maps type to the image index