From 3d0a66fc8c15a74ae33a5d92b68c0b9adcd02920 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 15 Dec 2013 12:49:06 +1100 Subject: Make single argument constructors explicit to avoid unexpected conversions. --- cocoa/QuartzTextLayout.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa/QuartzTextLayout.h') diff --git a/cocoa/QuartzTextLayout.h b/cocoa/QuartzTextLayout.h index edf357682..1e2fbce50 100644 --- a/cocoa/QuartzTextLayout.h +++ b/cocoa/QuartzTextLayout.h @@ -20,7 +20,7 @@ class QuartzTextLayout { public: /** Create a text layout for drawing on the specified context. */ - QuartzTextLayout( CGContextRef context ) + explicit QuartzTextLayout( CGContextRef context ) { mString = NULL; mLine = NULL; -- cgit v1.2.3