mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-03-14 02:57:45 +01:00
Added missing const specifier
This commit is contained in:
parent
4eec328dbf
commit
66693cd5c9
@ -115,7 +115,7 @@ public:
|
|||||||
|
|
||||||
/// Count the data elements in this container. This is slow as no internal
|
/// Count the data elements in this container. This is slow as no internal
|
||||||
/// counter is maintained.
|
/// counter is maintained.
|
||||||
int Count();
|
int Count() const;
|
||||||
|
|
||||||
|
|
||||||
/// Iterator is not remove safe.
|
/// Iterator is not remove safe.
|
||||||
@ -363,7 +363,7 @@ protected:
|
|||||||
void* a_context) const;
|
void* a_context) const;
|
||||||
void RemoveAllRec(Node* a_node);
|
void RemoveAllRec(Node* a_node);
|
||||||
void Reset();
|
void Reset();
|
||||||
void CountRec(Node* a_node, int& a_count);
|
void CountRec(Node* a_node, int& a_count) const;
|
||||||
|
|
||||||
/// Root of tree
|
/// Root of tree
|
||||||
Node* m_root;
|
Node* m_root;
|
||||||
@ -473,7 +473,7 @@ int RTREE_QUAL::Search(const ELEMTYPE a_min[NUMDIMS], const ELEMTYPE a_max[NUMDI
|
|||||||
|
|
||||||
|
|
||||||
RTREE_TEMPLATE
|
RTREE_TEMPLATE
|
||||||
int RTREE_QUAL::Count()
|
int RTREE_QUAL::Count() const
|
||||||
{
|
{
|
||||||
int count = 0;
|
int count = 0;
|
||||||
CountRec(m_root, count);
|
CountRec(m_root, count);
|
||||||
@ -483,7 +483,7 @@ int RTREE_QUAL::Count()
|
|||||||
|
|
||||||
|
|
||||||
RTREE_TEMPLATE
|
RTREE_TEMPLATE
|
||||||
void RTREE_QUAL::CountRec(Node* a_node, int& a_count)
|
void RTREE_QUAL::CountRec(Node* a_node, int& a_count) const
|
||||||
{
|
{
|
||||||
if (a_node->IsInternalNode()) { // not a leaf node
|
if (a_node->IsInternalNode()) { // not a leaf node
|
||||||
for (int index = 0; index < a_node->m_count; ++index)
|
for (int index = 0; index < a_node->m_count; ++index)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user