From 4b7e5b744554d6a5662371e1099c20061fcc9393 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 7 May 2014 17:05:33 +0200 Subject: [PATCH] reformat Server/APIGrammar according to guideline --- Server/APIGrammar.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Server/APIGrammar.h b/Server/APIGrammar.h index 4e9a21e8a..8f343d973 100644 --- a/Server/APIGrammar.h +++ b/Server/APIGrammar.h @@ -35,8 +35,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. namespace qi = boost::spirit::qi; template -struct APIGrammar : qi::grammar { - explicit APIGrammar(HandlerT * h) : APIGrammar::base_type(api_call), handler(h) { +struct APIGrammar : qi::grammar +{ + explicit APIGrammar(HandlerT * h) : APIGrammar::base_type(api_call), handler(h) + { api_call = qi::lit('/') >> string[boost::bind(&HandlerT::setService, handler, ::_1)] >> *(query); query = ('?') >> (+(zoom | output | jsonp | checksum | location | hint | cmp | language | instruction | geometry | alt_route | old_API) ) ;