make single argument c'tor explicit (thx flint)
This commit is contained in:
parent
e7db076648
commit
f90993be86
@ -54,7 +54,7 @@ private:
|
|||||||
protected:
|
protected:
|
||||||
DataFacadeT * facade;
|
DataFacadeT * facade;
|
||||||
public:
|
public:
|
||||||
BasicRoutingInterface( DataFacadeT * facade ) : facade(facade) { }
|
explicit BasicRoutingInterface( DataFacadeT * facade ) : facade(facade) { }
|
||||||
virtual ~BasicRoutingInterface(){ };
|
virtual ~BasicRoutingInterface(){ };
|
||||||
|
|
||||||
inline void RoutingStep(
|
inline void RoutingStep(
|
||||||
|
@ -36,7 +36,7 @@ namespace qi = boost::spirit::qi;
|
|||||||
|
|
||||||
template <typename Iterator, class HandlerT>
|
template <typename Iterator, class HandlerT>
|
||||||
struct APIGrammar : qi::grammar<Iterator> {
|
struct APIGrammar : qi::grammar<Iterator> {
|
||||||
APIGrammar(HandlerT * h) : APIGrammar::base_type(api_call), handler(h) {
|
explicit APIGrammar(HandlerT * h) : APIGrammar::base_type(api_call), handler(h) {
|
||||||
api_call = qi::lit('/') >> string[boost::bind(&HandlerT::setService, handler, ::_1)] >> *(query);
|
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) ) ;
|
query = ('?') >> (+(zoom | output | jsonp | checksum | location | hint | cmp | language | instruction | geometry | alt_route | old_API) ) ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user