Fix a warning reported by Coverity.
#ifdef HAVE_CPP_FUNC_PTR
this->renderer = rhs.renderer;
#endif
+ this->is_multipart = rhs.is_multipart;
};
HTTPBase& operator=(const HTTPBase& rhs) {
this->url = rhs.url; this->kind = rhs.kind;
#ifdef HAVE_CPP_FUNC_PTR
this->renderer = rhs.renderer;
#endif
+ this->is_multipart = rhs.is_multipart;
return *this;
};
public:
static std::pair<std::string, std::string> URLFor(const std::string &name, const strstr_map_t& arguments) { return router.urlFor(name,arguments); }; //<! Generates url from named route and arguments. Missing arguments are assumed empty
static const TRouteList& GetRoutes() { return router.routes; } //<! Reference to route list
+ static void Clear() { router.routes.clear(); } //<! Clear all routes
TRouteList routes; //<! Instance variable for routes
};