From e71e984af918104579da59e45785fe1651c5e992 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 23 Jan 2019 02:58:28 +0100 Subject: =?UTF-8?q?Avoid=20the=20=E2=80=9Cusing=20std::*;=E2=80=9D=20or=20?= =?UTF-8?q?=E2=80=9Cusing=20namespace=20std;=E2=80=9D=20constructs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes the code a lot less readable and greppable for no reason. --- src/ui/widget/preview.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/ui/widget/preview.cpp') diff --git a/src/ui/widget/preview.cpp b/src/ui/widget/preview.cpp index f22032b65..2de9a9a28 100644 --- a/src/ui/widget/preview.cpp +++ b/src/ui/widget/preview.cpp @@ -36,8 +36,6 @@ * ***** END LICENSE BLOCK ***** */ #include -using std::min; - #include #include "preview.h" #include "preferences.h" @@ -272,7 +270,7 @@ Preview::on_draw(const Cairo::RefPtr &cr) context->render_arrow(cr, G_PI, // Down-pointing arrow area.x, area.y, - min(area.width, area.height) + std::min(area.width, area.height) ); } @@ -286,7 +284,7 @@ Preview::on_draw(const Cairo::RefPtr &cr) context->render_arrow(cr, G_PI, // Down-pointing arrow otherArea.x, otherArea.y, - min(otherArea.width, otherArea.height) + std::min(otherArea.width, otherArea.height) ); } @@ -300,7 +298,7 @@ Preview::on_draw(const Cairo::RefPtr &cr) context->render_arrow(cr, 1.5*G_PI, // Left-pointing arrow otherArea.x, otherArea.y, - min(otherArea.width, otherArea.height) + std::min(otherArea.width, otherArea.height) ); } -- cgit v1.2.3