diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index 2fae7b12..716a9f2f 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -566,23 +566,15 @@ find_node (SGPropertyNode * current, } } #else -template -SGPropertyNode* -find_node (SGPropertyNode * current, - const Range& path, - bool create, - int last_index = -1) -{ +template +SGPropertyNode *find_node(SGPropertyNode *current, const Range &path, + bool create, int last_index = -1) { using namespace boost; - typedef split_iterator::type> - PathSplitIterator; - - PathSplitIterator itr - = make_split_iterator(path, first_finder("/", is_equal())); + auto itr = make_split_iterator(path, first_finder("/", is_equal())); if (*path.begin() == '/') return find_node_aux(current->getRootNode(), itr, create, last_index); - else - return find_node_aux(current, itr, create, last_index); + else + return find_node_aux(current, itr, create, last_index); } #endif