summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-09-30 08:23:42 +0000
committerDavid Robillard <d@drobilla.net>2010-09-30 08:23:42 +0000
commit14e30ac0256161439dd2bd7a80c3eba40abebad2 (patch)
treeddcaa76e8309addb90107c84da8fe6908a0ede8e /src/shared
parent6a0bf109a7136eba01504842930ac070d1f55ee8 (diff)
downloadingen-14e30ac0256161439dd2bd7a80c3eba40abebad2.tar.gz
ingen-14e30ac0256161439dd2bd7a80c3eba40abebad2.tar.bz2
ingen-14e30ac0256161439dd2bd7a80c3eba40abebad2.zip
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
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/LV2Features.hpp2
1 files changed, 1 insertions, 1 deletions
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<LV2_Feature> > FeatureVector;
- FeatureArray(FeatureVector& features)
+ explicit FeatureArray(FeatureVector& features)
: _features(features)
{
_array = (LV2_Feature**)malloc(sizeof(LV2_Feature) * (features.size() + 1));