2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-22 03:22:15 +00:00

Fix const on return type not applied to pointee type of typedef (#190)

Replace png_structp and png_infop aliases with regular pointers to
to prevent type qualifiers ignored on function return type.
This commit is contained in:
Mateusz Loskot
2018-12-14 08:12:45 +01:00
committed by GitHub
parent 96ae7e28f4
commit 230158bd66

View File

@@ -46,13 +46,13 @@ protected:
{}
png_ptr_wrapper* get() { return _png_ptr.get(); }
const png_ptr_wrapper* get() const { return _png_ptr.get(); }
png_ptr_wrapper const* get() const { return _png_ptr.get(); }
png_structp get_struct() { return get()->_struct; }
const png_structp get_struct() const { return get()->_struct; }
png_struct* get_struct() { return get()->_struct; }
png_struct const* get_struct() const { return get()->_struct; }
png_infop get_info() { return get()->_info; }
const png_infop get_info() const { return get()->_info; }
png_info* get_info() { return get()->_info; }
png_info const* get_info() const { return get()->_info; }
private: