Skip to content

Commit 06868a8

Browse files
author
Ruslan Nigmatullin
committed
move field init to field definition
1 parent 87fd3fb commit 06868a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/include/grpc_transcoding/path_matcher.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ class PathMatcherBuilder {
151151
std::unordered_set<std::string> custom_verbs_;
152152
typedef typename PathMatcher<Method>::MethodData MethodData;
153153
std::vector<std::unique_ptr<MethodData>> methods_;
154-
UrlUnescapeSpec unescape_spec_;
154+
UrlUnescapeSpec unescape_spec_ =
155+
UrlUnescapeSpec::kAllCharactersExceptReserved;
155156

156157
friend class PathMatcher<Method>;
157158
};
@@ -496,8 +497,7 @@ Method PathMatcher<Method>::Lookup(const std::string& http_method,
496497
// Initializes the builder with a root Path Segment
497498
template <class Method>
498499
PathMatcherBuilder<Method>::PathMatcherBuilder()
499-
: root_ptr_(new PathMatcherNode()),
500-
unescape_spec_(UrlUnescapeSpec::kAllCharactersExceptReserved) {}
500+
: root_ptr_(new PathMatcherNode()) {}
501501

502502
template <class Method>
503503
PathMatcherPtr<Method> PathMatcherBuilder<Method>::Build() {

0 commit comments

Comments
 (0)