priority_spec::valid(): remove const qualifier from return value

gcc generates warning:
* type qualifiers ignored on function return type [-Wignored-qualifiers]
This commit is contained in:
Richard Wolfert 2019-10-29 11:28:26 +01:00
parent d08c43951f
commit 29042f1c95
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ const nghttp2_priority_spec *priority_spec::get() const {
return &spec_;
}
const bool priority_spec::valid() const { return valid_; }
bool priority_spec::valid() const { return valid_; }
} // namespace client
} // namespace asio_http2

View File

@ -133,7 +133,7 @@ public:
// Indicates whether or not this spec is valid (i.e. was constructed with
// values).
const bool valid() const;
bool valid() const;
private:
nghttp2_priority_spec spec_;