From 14e30ac0256161439dd2bd7a80c3eba40abebad2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 30 Sep 2010 08:23:42 +0000 Subject: Declare single-argument constructors explicit (except where implicit conversion is actually desired). See http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Explicit_Constructors git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2619 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/LV2Features.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared') diff --git a/src/shared/LV2Features.hpp b/src/shared/LV2Features.hpp index cf771adc..1582adb5 100644 --- a/src/shared/LV2Features.hpp +++ b/src/shared/LV2Features.hpp @@ -46,7 +46,7 @@ public: public: typedef std::vector< SharedPtr > FeatureVector; - FeatureArray(FeatureVector& features) + explicit FeatureArray(FeatureVector& features) : _features(features) { _array = (LV2_Feature**)malloc(sizeof(LV2_Feature) * (features.size() + 1)); -- cgit v1.2.1