Make wxXmlNode::GetDepth() parameter const

There is no need to require a non-const pointer here.

Closes #24317.
This commit is contained in:
Vadim Zeitlin 2024-02-16 14:24:40 +01:00
parent 85b04c1c24
commit 63a40637eb
3 changed files with 3 additions and 3 deletions

View file

@ -203,7 +203,7 @@ public:
@a grandparent or the @NULL node (which is the parent of non-linked
nodes or the parent of a wxXmlDocument's root element node).
*/
int GetDepth(wxXmlNode* grandparent = nullptr) const;
int GetDepth(const wxXmlNode* grandparent = nullptr) const;
/**
Returns a flag indicating whether encoding conversion is necessary when saving. The default is @false.