mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 10:38:53 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user