From 0a37bcf24547101595299572533e5e3a98e04e1d Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Sat, 8 Sep 2012 19:08:53 +0200 Subject: Mark (non-public API's) ctor's as explicit Make C++ class constructors that can be used with only one required argument 'explicit' to minimize wrong use of the class. Change-Id: I12ad5b6eb1794108c6b7464a2573e84068733b03 Reviewed-by: Sergio Ahumada Reviewed-by: Thiago Macieira --- src/gui/painting/qpathclipper_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/painting') diff --git a/src/gui/painting/qpathclipper_p.h b/src/gui/painting/qpathclipper_p.h index 85b66a1515..8d1170dd9e 100644 --- a/src/gui/painting/qpathclipper_p.h +++ b/src/gui/painting/qpathclipper_p.h @@ -137,7 +137,7 @@ public: Curve }; - QPathEdge(int a = -1, int b = -1); + explicit QPathEdge(int a = -1, int b = -1); mutable int flag; -- cgit v1.2.3