Pass const pointer as a parameter
This commit is contained in:
parent
334a8c70ec
commit
2aa6259aa4
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue