Pass const pointer as a parameter
This commit is contained in:
@@ -1527,7 +1527,7 @@ public:
|
||||
// Determines, recursively, if all children are not unspecified.
|
||||
// pendingList - Assumes members in this wxVariant list as pending
|
||||
// replacement values.
|
||||
bool AreAllChildrenSpecified( wxVariant* pendingList = NULL ) const;
|
||||
bool AreAllChildrenSpecified( const wxVariant* pendingList = NULL ) const;
|
||||
|
||||
// Updates composed values of parent non-category properties, recursively.
|
||||
// Returns topmost property updated.
|
||||
|
||||
@@ -1330,7 +1330,7 @@ public:
|
||||
Assumes members in this wxVariant list as pending
|
||||
replacement values.
|
||||
*/
|
||||
bool AreAllChildrenSpecified( wxVariant* pendingList = NULL ) const;
|
||||
bool AreAllChildrenSpecified( const wxVariant* pendingList = NULL ) const;
|
||||
|
||||
/**
|
||||
Returns @true if children of this property are component values (for instance,
|
||||
|
||||
@@ -2655,7 +2655,7 @@ wxVariant wxPGProperty::ChildChanged( wxVariant& WXUNUSED(thisValue),
|
||||
return wxNullVariant;
|
||||
}
|
||||
|
||||
bool wxPGProperty::AreAllChildrenSpecified( wxVariant* pendingList ) const
|
||||
bool wxPGProperty::AreAllChildrenSpecified( const wxVariant* pendingList ) const
|
||||
{
|
||||
const wxVariantList* pList = NULL;
|
||||
wxVariantList::const_iterator node;
|
||||
@@ -2702,7 +2702,7 @@ bool wxPGProperty::AreAllChildrenSpecified( wxVariant* pendingList ) const
|
||||
if ( listValue && listValue->IsType(wxPG_VARIANT_TYPE_LIST) )
|
||||
childList = listValue;
|
||||
|
||||
if ( !child->AreAllChildrenSpecified(const_cast<wxVariant*>(childList)) )
|
||||
if ( !child->AreAllChildrenSpecified(childList) )
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user