More warning and error fixes (work in progress with Tinderbox).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-06-02 09:44:45 +00:00
parent 7b1c346952
commit 2af95167f5
12 changed files with 291 additions and 312 deletions

View File

@@ -6,7 +6,7 @@
// Created: 27/09/98
// RCS-ID: $Id$
// Copyright: (c) Aleskandars Gluchovas
// Licence: wxWindows licence
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef __WXSTLAC_G__
@@ -28,18 +28,18 @@
// arguments:
//
// ARG_IS_UNIQUE
// ASSOC_CONT_CLASS_NAME
// ARG_IS_UNIQUE
// ASSOC_CONT_CLASS_NAME
//
// ARG_VALUE_TYPE
// ARG_VALUE_TYPE
// ARG_KEY_TYPE
// ARG_ACTUAL_VALUE_TYPE
//
//
// _KEY_NAME
// _VALUE_NAME
//
// _X_KEY_NAME
// _X_VALUE_NAME
// _X_KEY_NAME
// _X_VALUE_NAME
//
// _INSERT_METHOD_DEFINITION
@@ -60,9 +60,9 @@ ASSOC_CONT_CLASS_NAME\
protected:\
\
public:\
typedef ARG_VALUE_TYPE value_type;\
typedef ARG_KEY_TYPE key_type;\
typedef ARG_ACTUAL_VALUE_TYPE actual_value_type;\
typedef ARG_VALUE_TYPE value_type;\
typedef ARG_KEY_TYPE key_type;\
typedef ARG_ACTUAL_VALUE_TYPE actual_value_type;\
\
typedef value_type* pointer;\
typedef value_type& reference;\
@@ -76,7 +76,7 @@ protected:\
\
struct tree_node \
{\
tree_node* mpParent;\
tree_node* m_pParent;\
tree_node* mpLeft;\
tree_node* mpRight;\
\
@@ -109,16 +109,16 @@ public:\
return pNode;\
}\
else\
if ( pNode->mpParent )\
if ( pNode->m_pParent )\
{\
if ( pNode == pNode->mpParent->mpLeft )\
if ( pNode == pNode->m_pParent->mpLeft )\
\
return pNode->mpParent;\
return pNode->m_pParent;\
\
pNode = pNode->mpParent;\
pNode = pNode->m_pParent;\
\
node_ref_type prevNode = pNode;\
pNode = pNode->mpParent;\
pNode = pNode->m_pParent;\
\
while(pNode)\
{\
@@ -127,7 +127,7 @@ public:\
) return pNode;\
\
prevNode = pNode;\
pNode= pNode->mpParent;\
pNode= pNode->m_pParent;\
}\
\
return 0;\
@@ -147,15 +147,15 @@ public:\
return pNode;\
}\
else\
if ( pNode->mpParent )\
if ( pNode->m_pParent )\
{\
if ( pNode == pNode->mpParent->mpRight )\
return pNode->mpParent;\
if ( pNode == pNode->m_pParent->mpRight )\
return pNode->m_pParent;\
\
pNode = pNode->mpParent;\
pNode = pNode->m_pParent;\
\
node_ref_type prevNode = pNode;\
pNode = pNode->mpParent;\
pNode = pNode->m_pParent;\
\
while(pNode)\
{\
@@ -164,7 +164,7 @@ public:\
) return pNode;\
\
prevNode = pNode;\
pNode= pNode->mpParent;\
pNode= pNode->m_pParent;\
}\
\
return 0;\
@@ -233,7 +233,7 @@ protected:\
{\
node_ref_type pNewNode = AllocNode();\
\
pNewNode->mpParent = \
pNewNode->m_pParent = \
pNewNode->mpLeft =\
pNewNode->mpRight = 0;\
\
@@ -255,7 +255,7 @@ protected:\
: pCurrent->mpRight;\
}\
\
pNewNode->mpParent = pParent;\
pNewNode->m_pParent = pParent;\
\
if(pParent)\
\
@@ -546,15 +546,15 @@ public:\
else\
pX = pY->mpRight;\
\
if ( pX ) pX->mpParent = pY->mpParent;\
if ( pX ) pX->m_pParent = pY->m_pParent;\
\
if (pY->mpParent)\
if (pY->m_pParent)\
\
if (pY == pY->mpParent->mpLeft )\
if (pY == pY->m_pParent->mpLeft )\
\
pY->mpParent->mpLeft = pX;\
pY->m_pParent->mpLeft = pX;\
else\
pY->mpParent->mpRight = pX;\
pY->m_pParent->mpRight = pX;\
else\
mpRoot = pX;\
\
@@ -564,23 +564,23 @@ public:\
\
pY->mpLeft = pZ->mpLeft;\
\
if (pY->mpLeft) pY->mpLeft->mpParent = pY;\
if (pY->mpLeft) pY->mpLeft->m_pParent = pY;\
\
pY->mpRight = pZ->mpRight;\
\
if ( pY->mpRight ) \
\
pY->mpRight->mpParent = pY;\
pY->mpRight->m_pParent = pY;\
\
pY->mpParent = pZ->mpParent;\
pY->m_pParent = pZ->m_pParent;\
\
if (pZ->mpParent)\
if (pZ->m_pParent)\
\
if (pZ == pZ->mpParent->mpLeft)\
if (pZ == pZ->m_pParent->mpLeft)\
\
pZ->mpParent->mpLeft = pY;\
pZ->m_pParent->mpLeft = pY;\
else\
pZ->mpParent->mpRight = pY;\
pZ->m_pParent->mpRight = pY;\
else\
mpRoot = pY;\
\
@@ -662,7 +662,7 @@ inline insert_result_iterator insert( const value_type& x )\
#define GREATER_THEN_FUNCTOR(TYPE) struct \
{ inline int operator()(const TYPE& x, const TYPE& y ) const { return x > y; } }
// functor argument should be created using the two above macros
// functor argument should be created using the two above macros
// or passing own class with method "operator()(const TYPE&,cosnt TYPE&)" defined in it
#define WXSTL_MAP( KEY_TYPE, VALUE_TYPE, FUNCTOR ) __DEFINE_MAP( 1 ,KEY_TYPE, VALUE_TYPE, FUNCTOR)