Use boost::to_lower_copy instead of function from simgear
The simgear function is about to get removed.
This commit is contained in:
parent
e1555ba9a5
commit
9ebd19babf
1 changed files with 3 additions and 2 deletions
|
@ -29,10 +29,11 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#include <boost/algorithm/string/case_conv.hpp>
|
||||||
|
|
||||||
#include <simgear/math/sg_geodesy.hxx>
|
#include <simgear/math/sg_geodesy.hxx>
|
||||||
#include <simgear/timing/timestamp.hxx>
|
#include <simgear/timing/timestamp.hxx>
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
#include <simgear/misc/strutils.hxx>
|
|
||||||
|
|
||||||
#include "positioned.hxx"
|
#include "positioned.hxx"
|
||||||
|
|
||||||
|
@ -504,7 +505,7 @@ FGPositioned::Type FGPositioned::typeFromName(const std::string& aName)
|
||||||
{NULL, INVALID}
|
{NULL, INVALID}
|
||||||
};
|
};
|
||||||
|
|
||||||
std::string lowerName(simgear::strutils::convertToLowerCase(aName));
|
std::string lowerName(boost::to_lower_copy(aName));
|
||||||
|
|
||||||
for (const NameTypeEntry* n = names; (n->_name != NULL); ++n) {
|
for (const NameTypeEntry* n = names; (n->_name != NULL); ++n) {
|
||||||
if (::strcmp(n->_name, lowerName.c_str()) == 0) {
|
if (::strcmp(n->_name, lowerName.c_str()) == 0) {
|
||||||
|
|
Loading…
Reference in a new issue