@@ -37,7 +37,7 @@ template <> struct is_container<osmium::Way> : std::false_type
37
37
template <> struct is_container <osmium::Relation> : std::false_type
38
38
{
39
39
};
40
- }
40
+ } // namespace sol
41
41
42
42
namespace osrm
43
43
{
@@ -91,7 +91,7 @@ struct to_lua_object : public boost::static_visitor<sol::object>
91
91
auto operator ()(boost::blank &) const { return sol::nil; }
92
92
sol::state &state;
93
93
};
94
- }
94
+ } // namespace
95
95
96
96
Sol2ScriptingEnvironment::Sol2ScriptingEnvironment (
97
97
const std::string &file_name,
@@ -424,8 +424,8 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
424
424
" get_relations" ,
425
425
[&getTypedRefBySol](ExtractionRelationContainer &cont, const sol::object &obj)
426
426
-> const ExtractionRelationContainer::RelationIDList & {
427
- return cont.GetRelations (getTypedRefBySol (obj));
428
- },
427
+ return cont.GetRelations (getTypedRefBySol (obj));
428
+ },
429
429
" relation" ,
430
430
[](ExtractionRelationContainer &cont, const ExtractionRelation::OsmIDTyped &rel_id)
431
431
-> const ExtractionRelation & { return cont.GetRelationData (rel_id); });
@@ -589,7 +589,6 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
589
589
};
590
590
591
591
auto initialize_V3_extraction_turn = [&]() {
592
-
593
592
context.state .new_usertype <ExtractionTurn>(
594
593
" ExtractionTurn" ,
595
594
" angle" ,
@@ -944,8 +943,9 @@ Sol2ScriptingEnvironment::GetStringListFromTable(const std::string &table_name)
944
943
auto &context = GetSol2Context ();
945
944
BOOST_ASSERT (context.state .lua_state () != nullptr );
946
945
std::vector<std::string> strings;
947
- if (context.profile_table [table_name] == sol::nil){
948
- return strings;
946
+ if (context.profile_table [table_name] == sol::nil)
947
+ {
948
+ return strings;
949
949
}
950
950
sol::table table = context.profile_table [table_name];
951
951
if (table.valid ())
@@ -965,8 +965,9 @@ Sol2ScriptingEnvironment::GetStringListsFromTable(const std::string &table_name)
965
965
966
966
auto &context = GetSol2Context ();
967
967
BOOST_ASSERT (context.state .lua_state () != nullptr );
968
- if (context.profile_table [table_name] == sol::nil){
969
- return string_lists;
968
+ if (context.profile_table [table_name] == sol::nil)
969
+ {
970
+ return string_lists;
970
971
}
971
972
sol::table table = context.profile_table [table_name];
972
973
if (!table.valid ())
0 commit comments