]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/richedit/kbList.h
MSW Support
[wxWidgets.git] / samples / richedit / kbList.h
index 8bde57daf0ab3722e184b5629dc31cdd9cb7e25d..f1aa53bd2bef26dbf4091b5980f0b6d22ffb765b 100644 (file)
 #ifndef   KBLIST_H
 #   define   KBLIST_H
 
-#ifdef __GNUG__
-#   pragma interface "kbList.h"
-#endif
-
 #ifndef   NULL
 #   define   NULL   0
 #endif
@@ -136,7 +132,7 @@ public:
        deleted by list. See the constructor for more details.
        @param ownsflag if true, list will own entries
    */
-   void ownsObjects(bool ownsflag = true)
+   void ownsObjects(bool ownsflag)
       { ownsEntries = ownsflag; }
 
    /** Query whether list owns entries.
@@ -236,7 +232,10 @@ protected:
        param iterator i
    */
    inline void deleteContent(iterator i)
-      { if(ownsEntries) delete *i; }
+   {
+      iterator *i_ptr = &i;
+      if(ownsEntries) delete i_ptr;
+   }
 
 
 private:
@@ -274,7 +273,7 @@ public: \
          /* the cast is needed for MS VC++ 5.0 */ \
          { return (type *)((kbList::iterator *)this)->operator*() ; } \
    }; \
-   inline name(bool ownsEntriesFlag = TRUE) \
+   inline name(bool ownsEntriesFlag = true) \
       : kbList(ownsEntriesFlag) {} \
    \
    inline type *pop_back(void) \