From e1c111646504185787cd5ca86f6b452fda5cc341 Mon Sep 17 00:00:00 2001 From: meshtag Date: Wed, 24 Mar 2021 15:04:44 +0530 Subject: [PATCH] Improve formatting --- .../extension/toolbox/metafunctions/shrink.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/boost/gil/extension/toolbox/metafunctions/shrink.hpp b/include/boost/gil/extension/toolbox/metafunctions/shrink.hpp index ede177a92a..bd9b14650d 100644 --- a/include/boost/gil/extension/toolbox/metafunctions/shrink.hpp +++ b/include/boost/gil/extension/toolbox/metafunctions/shrink.hpp @@ -7,7 +7,7 @@ #include -namespace boost { namespace gil { +namespace boost { namespace gil { /// \brief Assigns a smaller subimage view of the view given as first parameter to the /// destination/resultant view given as second parameter to the overloaded '()' operator. @@ -30,22 +30,22 @@ struct shrink void operator()(view_t& view, view_t& dstView) { - if(left < 1.0) + if (left < 1.0) left *= view.width(); - if(right < 1.0) + if (right < 1.0) right *= view.width(); - if(top < 1.0) + if (top < 1.0) top *= view.height(); - if(bottom < 1.0) + if (bottom < 1.0) bottom *= view.height(); double width = view.width() - left - right; double height = view.height() - top - bottom; dstView = boost::gil::subimage_view(view, static_cast(left), - static_cast(top), static_cast(width), - static_cast(height)); + static_cast(top), static_cast(width), + static_cast(height)); } -}; -} } +}; // shrink +}} // namespace boost::gil #endif