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:
parent
2373ee4f05
commit
caf3a4253d
1 changed files with 21 additions and 21 deletions
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring> // for strcmp
|
#include <cstring> // for strcmp
|
||||||
#include <boost/foreach.hpp>
|
|
||||||
|
|
||||||
#include "dynamicloader.hxx"
|
#include "dynamicloader.hxx"
|
||||||
|
|
||||||
|
@ -77,8 +76,9 @@ void FGGroundNetXMLLoader::endXML ()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FOREACH(FGTaxiNodeRef node, _unreferencedNodes) {
|
for (const FGTaxiNodeRef& node: _unreferencedNodes) {
|
||||||
SG_LOG(SG_NAVAID, SG_DEV_WARN, "unreferenced groundnet node:" << node->ident());
|
SG_LOG(SG_NAVAID, SG_DEV_WARN,
|
||||||
|
"unreferenced groundnet node: " << node->getIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue