]> git.mxchange.org Git - flightgear.git/commitdiff
Use boost::to_lower_copy instead of function from simgear
authorTim Moore <timoore@redhat.com>
Wed, 30 Sep 2009 22:15:37 +0000 (00:15 +0200)
committerTim Moore <timoore@redhat.com>
Wed, 30 Sep 2009 22:15:37 +0000 (00:15 +0200)
The simgear function is about to get removed.

src/Navaids/positioned.cxx

index 28e723811925433b7ca02c813be17c153d61e85d..0553956e10c334d663aa19ed19e9ac6bdf1ed38d 100644 (file)
 
 #include <iostream>
 
+#include <boost/algorithm/string/case_conv.hpp>
+
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/timing/timestamp.hxx>
 #include <simgear/debug/logstream.hxx>
-#include <simgear/misc/strutils.hxx>
 
 #include "positioned.hxx"
 
@@ -504,7 +505,7 @@ FGPositioned::Type FGPositioned::typeFromName(const std::string& aName)
     {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) {
     if (::strcmp(n->_name, lowerName.c_str()) == 0) {