mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Cosmetics
This commit is contained in:
parent
515f1aeb27
commit
52a8b1de5b
@ -1,7 +1,6 @@
|
|||||||
#ifndef RTREE_H
|
#ifndef RTREE_H
|
||||||
#define RTREE_H
|
#define RTREE_H
|
||||||
|
|
||||||
#include <cstdio>
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
@ -387,10 +386,10 @@ RTREE_TEMPLATE
|
|||||||
void RTREE_QUAL::Insert(const ELEMTYPE a_min[NUMDIMS],
|
void RTREE_QUAL::Insert(const ELEMTYPE a_min[NUMDIMS],
|
||||||
const ELEMTYPE a_max[NUMDIMS], const DATATYPE& a_dataId)
|
const ELEMTYPE a_max[NUMDIMS], const DATATYPE& a_dataId)
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifndef QT_NO_DEBUG
|
||||||
for (int index=0; index<NUMDIMS; ++index)
|
for (int index=0; index<NUMDIMS; ++index)
|
||||||
Q_ASSERT(a_min[index] <= a_max[index]);
|
Q_ASSERT(a_min[index] <= a_max[index]);
|
||||||
#endif //_DEBUG
|
#endif // QT_NO_DEBUG
|
||||||
|
|
||||||
Rect rect;
|
Rect rect;
|
||||||
|
|
||||||
@ -407,10 +406,10 @@ RTREE_TEMPLATE
|
|||||||
void RTREE_QUAL::Remove(const ELEMTYPE a_min[NUMDIMS],
|
void RTREE_QUAL::Remove(const ELEMTYPE a_min[NUMDIMS],
|
||||||
const ELEMTYPE a_max[NUMDIMS], const DATATYPE& a_dataId)
|
const ELEMTYPE a_max[NUMDIMS], const DATATYPE& a_dataId)
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifndef QT_NO_DEBUG
|
||||||
for (int index=0; index<NUMDIMS; ++index)
|
for (int index=0; index<NUMDIMS; ++index)
|
||||||
Q_ASSERT(a_min[index] <= a_max[index]);
|
Q_ASSERT(a_min[index] <= a_max[index]);
|
||||||
#endif //_DEBUG
|
#endif // QT_NO_DEBUG
|
||||||
|
|
||||||
Rect rect;
|
Rect rect;
|
||||||
|
|
||||||
@ -427,10 +426,10 @@ RTREE_TEMPLATE
|
|||||||
int RTREE_QUAL::Search(const ELEMTYPE a_min[NUMDIMS], const ELEMTYPE a_max[NUMDIMS],
|
int RTREE_QUAL::Search(const ELEMTYPE a_min[NUMDIMS], const ELEMTYPE a_max[NUMDIMS],
|
||||||
bool a_resultCallback(DATATYPE a_data, void* a_context), void* a_context) const
|
bool a_resultCallback(DATATYPE a_data, void* a_context), void* a_context) const
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifndef QT_NO_DEBUG
|
||||||
for (int index=0; index<NUMDIMS; ++index)
|
for (int index=0; index<NUMDIMS; ++index)
|
||||||
Q_ASSERT(a_min[index] <= a_max[index]);
|
Q_ASSERT(a_min[index] <= a_max[index]);
|
||||||
#endif //_DEBUG
|
#endif // QT_NO_DEBUG
|
||||||
|
|
||||||
Rect rect;
|
Rect rect;
|
||||||
|
|
||||||
@ -636,10 +635,10 @@ bool RTREE_QUAL::InsertRect(Rect* a_rect, const DATATYPE& a_id, Node** a_root,
|
|||||||
{
|
{
|
||||||
Q_ASSERT(a_rect && a_root);
|
Q_ASSERT(a_rect && a_root);
|
||||||
Q_ASSERT(a_level >= 0 && a_level <= (*a_root)->m_level);
|
Q_ASSERT(a_level >= 0 && a_level <= (*a_root)->m_level);
|
||||||
#ifdef _DEBUG
|
#ifndef QT_NO_DEBUG
|
||||||
for (int index=0; index < NUMDIMS; ++index)
|
for (int index=0; index < NUMDIMS; ++index)
|
||||||
Q_ASSERT(a_rect->m_min[index] <= a_rect->m_max[index]);
|
Q_ASSERT(a_rect->m_min[index] <= a_rect->m_max[index]);
|
||||||
#endif //_DEBUG
|
#endif // QT_NO_DEBUG
|
||||||
|
|
||||||
Node* newRoot;
|
Node* newRoot;
|
||||||
Node* newNode;
|
Node* newNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user