1
0
Fork 0

Use FGTaxiNode::getIndex() instead of FGTaxiNode::ident() in a dev warning

This is because FGTaxiNode::ident() is generally (always?) an empty
string for FGTaxiNode instances. This concerns the:

  unreferenced groundnet node: ...

warning. Also remove one tiny use of boost.
This commit is contained in:
Florent Rougon 2017-04-14 12:12:18 +02:00
parent 2373ee4f05
commit caf3a4253d

View file

@ -19,7 +19,6 @@
#include <cstdlib>
#include <cstring> // for strcmp
#include <boost/foreach.hpp>
#include "dynamicloader.hxx"
@ -77,8 +76,9 @@ void FGGroundNetXMLLoader::endXML ()
}
BOOST_FOREACH(FGTaxiNodeRef node, _unreferencedNodes) {
SG_LOG(SG_NAVAID, SG_DEV_WARN, "unreferenced groundnet node:" << node->ident());
for (const FGTaxiNodeRef& node: _unreferencedNodes) {
SG_LOG(SG_NAVAID, SG_DEV_WARN,
"unreferenced groundnet node: " << node->getIndex());
}
}