Skip to content

Commit

Permalink
Fix warning: returning reference to local temporary object (boostorg#556
Browse files Browse the repository at this point in the history
)

Fixes boostorg#475
  • Loading branch information
mloskot authored and meshtag committed Apr 21, 2021
1 parent 3650950 commit b656e64
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ class subchroma_image_view : public image_view<Locator>
: image_view< locator >( v )
{}

const point_t& v_ssfactors() const { return point_t( get_deref_fn().vx_ssfactor(), get_deref_fn().vx_ssfactor() ); }
const point_t& u_ssfactors() const { return point_t( get_deref_fn().ux_ssfactor(), get_deref_fn().ux_ssfactor() ); }
point_t v_ssfactors() const { return point_t( get_deref_fn().vx_ssfactor(), get_deref_fn().vx_ssfactor() ); }
point_t u_ssfactors() const { return point_t( get_deref_fn().ux_ssfactor(), get_deref_fn().ux_ssfactor() ); }

const point_t& y_dimension() const { return _y_dimensions; }
const point_t& v_dimension() const { return _v_dimensions; }
Expand All @@ -256,9 +256,9 @@ class subchroma_image_view : public image_view<Locator>
const plane_locator_t& v_plane() const { return get_deref_fn().v_locator(); }
const plane_locator_t& u_plane() const { return get_deref_fn().u_locator(); }

const plane_view_t y_plane_view() const { return plane_view_t( _y_dimensions, y_plane() ); }
const plane_view_t v_plane_view() const { return plane_view_t( _v_dimensions, v_plane() ); }
const plane_view_t u_plane_view() const { return plane_view_t( _u_dimensions, u_plane() ); }
plane_view_t y_plane_view() const { return plane_view_t( _y_dimensions, y_plane() ); }
plane_view_t v_plane_view() const { return plane_view_t( _v_dimensions, v_plane() ); }
plane_view_t u_plane_view() const { return plane_view_t( _u_dimensions, u_plane() ); }


private:
Expand Down

0 comments on commit b656e64

Please sign in to comment.