clang-format changed file
This commit is contained in:
parent
b1646622e6
commit
24d0af6faf
@ -37,7 +37,7 @@ template <> struct is_container<osmium::Way> : std::false_type
|
||||
template <> struct is_container<osmium::Relation> : std::false_type
|
||||
{
|
||||
};
|
||||
}
|
||||
} // namespace sol
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
@ -91,7 +91,7 @@ struct to_lua_object : public boost::static_visitor<sol::object>
|
||||
auto operator()(boost::blank &) const { return sol::nil; }
|
||||
sol::state &state;
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Sol2ScriptingEnvironment::Sol2ScriptingEnvironment(
|
||||
const std::string &file_name,
|
||||
@ -424,8 +424,8 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
|
||||
"get_relations",
|
||||
[&getTypedRefBySol](ExtractionRelationContainer &cont, const sol::object &obj)
|
||||
-> const ExtractionRelationContainer::RelationIDList & {
|
||||
return cont.GetRelations(getTypedRefBySol(obj));
|
||||
},
|
||||
return cont.GetRelations(getTypedRefBySol(obj));
|
||||
},
|
||||
"relation",
|
||||
[](ExtractionRelationContainer &cont, const ExtractionRelation::OsmIDTyped &rel_id)
|
||||
-> const ExtractionRelation & { return cont.GetRelationData(rel_id); });
|
||||
@ -589,7 +589,6 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
|
||||
};
|
||||
|
||||
auto initialize_V3_extraction_turn = [&]() {
|
||||
|
||||
context.state.new_usertype<ExtractionTurn>(
|
||||
"ExtractionTurn",
|
||||
"angle",
|
||||
@ -944,8 +943,9 @@ Sol2ScriptingEnvironment::GetStringListFromTable(const std::string &table_name)
|
||||
auto &context = GetSol2Context();
|
||||
BOOST_ASSERT(context.state.lua_state() != nullptr);
|
||||
std::vector<std::string> strings;
|
||||
if(context.profile_table[table_name] == sol::nil){
|
||||
return strings;
|
||||
if (context.profile_table[table_name] == sol::nil)
|
||||
{
|
||||
return strings;
|
||||
}
|
||||
sol::table table = context.profile_table[table_name];
|
||||
if (table.valid())
|
||||
@ -965,8 +965,9 @@ Sol2ScriptingEnvironment::GetStringListsFromTable(const std::string &table_name)
|
||||
|
||||
auto &context = GetSol2Context();
|
||||
BOOST_ASSERT(context.state.lua_state() != nullptr);
|
||||
if(context.profile_table[table_name] == sol::nil){
|
||||
return string_lists;
|
||||
if (context.profile_table[table_name] == sol::nil)
|
||||
{
|
||||
return string_lists;
|
||||
}
|
||||
sol::table table = context.profile_table[table_name];
|
||||
if (!table.valid())
|
||||
|
Loading…
Reference in New Issue
Block a user