X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Ftgdb%2FTileEntry.cxx;h=3442d39f55165b376476b07e8e9b7dde7fa45912;hb=7e7ce2f38e87d6244e05730fa4382da088bb25f1;hp=2782c023b3f97f33043c5fd5be301b9bf0040548;hpb=ec72b46dcb14dea017f4c57a45cf8595c543b824;p=simgear.git diff --git a/simgear/scene/tgdb/TileEntry.cxx b/simgear/scene/tgdb/TileEntry.cxx index 2782c023..3442d39f 100644 --- a/simgear/scene/tgdb/TileEntry.cxx +++ b/simgear/scene/tgdb/TileEntry.cxx @@ -25,8 +25,9 @@ #include #include -#include STL_STRING +#include #include +#include #include #include @@ -44,7 +45,6 @@ #include #include -#include #include #include #include @@ -61,7 +61,7 @@ #include "ReaderWriterSTG.hxx" #include "TileEntry.hxx" -SG_USING_STD(string); +using std::string; using namespace simgear; ModelLoadHelper *TileEntry::_modelLoader=0; @@ -237,7 +237,7 @@ bool TileEntry::obj_load( const string& path, if (node) geometry->addChild(node); - return node; + return node != 0; } @@ -252,7 +252,8 @@ typedef enum { // storage class for deferred object processing in TileEntry::load() struct Object { - Object(object_type t, const string& token, const SGPath& p, istream& in) + Object(object_type t, const string& token, const SGPath& p, + std::istream& in) : type(t), path(p) { in >> name;