X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGExpression.cxx;h=2633e311fdd7a646688e021d1ed7d53fb20fdc3d;hb=f41b18f0649a50e179ba41383f4061e1878c4d4c;hp=6f292e46faa8ed596044ac30a77560104b4491b9;hpb=58c7edfed6a848f555bb0eaa65593162b5a206ce;p=simgear.git diff --git a/simgear/structure/SGExpression.cxx b/simgear/structure/SGExpression.cxx index 6f292e46..2633e311 100644 --- a/simgear/structure/SGExpression.cxx +++ b/simgear/structure/SGExpression.cxx @@ -27,7 +27,6 @@ #include "Singleton.hxx" #include -#include #include #include #include @@ -370,7 +369,7 @@ SGReadExpression(SGPropertyNode *inputRoot, const SGPropertyNode *expression) SG_LOG(SG_IO, SG_ALERT, "Cannot read \"" << name << "\" expression: no input found"); return 0; } - + SGSharedPtr > inputExpression; inputExpression = SGReadExpression(inputRoot, inputNode); if (!inputExpression) { @@ -866,7 +865,7 @@ Expression* logicopParser(const SGPropertyNode* exp, Parser* parser) ExpParserRegistrar andRegistrar("and", logicopParser); ExpParserRegistrar orRegistrar("or", logicopParser); -int BindingLayout::addBinding(const string& name, Type type) +size_t BindingLayout::addBinding(const string& name, Type type) { //XXX error checkint vector::iterator itr @@ -874,7 +873,7 @@ int BindingLayout::addBinding(const string& name, Type type) boost::bind(&VariableBinding::name, _1) == name); if (itr != bindings.end()) return itr->location; - int result = bindings.size(); + size_t result = bindings.size(); bindings.push_back(VariableBinding(name, type, bindings.size())); return result; }