Bool replaced by bool (I hope I got it right this time!)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-06-05 14:46:17 +00:00
parent 1889c7c9b7
commit bc7665d447

View File

@@ -19,8 +19,6 @@
#include "wx/defs.h" #include "wx/defs.h"
#include "wx/utils.h" #include "wx/utils.h"
typedef bool Bool;
/** @name Dynamic arrays and lists /** @name Dynamic arrays and lists
@memo Arrays which grow on demand and do range checking (only in debug) @memo Arrays which grow on demand and do range checking (only in debug)
*/ */
@@ -100,7 +98,7 @@ public:
/// number of elements in the array /// number of elements in the array
uint Count() const { return m_uiCount; } uint Count() const { return m_uiCount; }
/// is it empty? /// is it empty?
Bool IsEmpty() const { return m_uiCount == 0; } bool IsEmpty() const { return m_uiCount == 0; }
//@} //@}
protected: protected:
@@ -125,7 +123,7 @@ protected:
@return index of the first item matched or NOT_FOUND @return index of the first item matched or NOT_FOUND
@see NOT_FOUND @see NOT_FOUND
*/ */
int Index (long lItem, Bool bFromEnd = FALSE) const; int Index (long lItem, bool bFromEnd = FALSE) const;
/// add new element at the end /// add new element at the end
void Add (long lItem); void Add (long lItem);
/// add new element at given position /// add new element at given position
@@ -175,7 +173,7 @@ public: \
T& Item(uint uiIndex) const \ T& Item(uint uiIndex) const \
{ return (T&)(wxBaseArray::Item(uiIndex)); } \ { return (T&)(wxBaseArray::Item(uiIndex)); } \
\ \
int Index(T Item, Bool bFromEnd = FALSE) const \ int Index(T Item, bool bFromEnd = FALSE) const \
{ return wxBaseArray::Index((long)Item, bFromEnd); } \ { return wxBaseArray::Index((long)Item, bFromEnd); } \
\ \
void Add(T Item) \ void Add(T Item) \
@@ -211,7 +209,7 @@ public: \
T& Item(uint uiIndex) const \ T& Item(uint uiIndex) const \
{ return *(T*)wxBaseArray::Item(uiIndex); } \ { return *(T*)wxBaseArray::Item(uiIndex); } \
\ \
int Index(const T& Item, Bool bFromEnd = FALSE) const; \ int Index(const T& Item, bool bFromEnd = FALSE) const; \
\ \
void Add(const T& Item); \ void Add(const T& Item); \
void Add(const T* pItem) \ void Add(const T* pItem) \