mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-08 02:58: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_;
|
return &spec_;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool priority_spec::valid() const { return valid_; }
|
bool priority_spec::valid() const { return valid_; }
|
||||||
|
|
||||||
} // namespace client
|
} // namespace client
|
||||||
} // namespace asio_http2
|
} // namespace asio_http2
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ public:
|
|||||||
|
|
||||||
// Indicates whether or not this spec is valid (i.e. was constructed with
|
// Indicates whether or not this spec is valid (i.e. was constructed with
|
||||||
// values).
|
// values).
|
||||||
const bool valid() const;
|
bool valid() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
nghttp2_priority_spec spec_;
|
nghttp2_priority_spec spec_;
|
||||||
|
|||||||
Reference in New Issue
Block a user