Skip to content
Snippets Groups Projects
Commit cfcb826e authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[T] Move NDEBUG to include function.

This avoids a warning about unused argument oct_tree.
parent 372447e1
No related branches found
No related tags found
No related merge requests found
......@@ -29,12 +29,12 @@ public:
delete p;
}
}
#ifndef NDEBUG
template <std::size_t MAX_POINTS>
void
checkOctTreeChildsNonNullptr(
GeoLib::OctTree<GeoLib::Point, MAX_POINTS> const& oct_tree) const
{
#ifndef NDEBUG
ASSERT_NE(nullptr, oct_tree.getChild(0));
ASSERT_NE(nullptr, oct_tree.getChild(1));
ASSERT_NE(nullptr, oct_tree.getChild(2));
......@@ -43,14 +43,14 @@ public:
ASSERT_NE(nullptr, oct_tree.getChild(5));
ASSERT_NE(nullptr, oct_tree.getChild(6));
ASSERT_NE(nullptr, oct_tree.getChild(7));
#endif
}
#endif
#ifndef NDEBUG
template <std::size_t MAX_POINTS>
void
checkOctTreeChildsNullptr(GeoLib::OctTree<GeoLib::Point, MAX_POINTS> const& oct_tree) const
{
#ifndef NDEBUG
ASSERT_EQ(nullptr, oct_tree.getChild(0));
ASSERT_EQ(nullptr, oct_tree.getChild(1));
ASSERT_EQ(nullptr, oct_tree.getChild(2));
......@@ -59,8 +59,8 @@ public:
ASSERT_EQ(nullptr, oct_tree.getChild(5));
ASSERT_EQ(nullptr, oct_tree.getChild(6));
ASSERT_EQ(nullptr, oct_tree.getChild(7));
#endif
}
#endif
protected:
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment