diff options
author | David Robillard <d@drobilla.net> | 2010-09-30 08:23:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-09-30 08:23:42 +0000 |
commit | 14e30ac0256161439dd2bd7a80c3eba40abebad2 (patch) | |
tree | ddcaa76e8309addb90107c84da8fe6908a0ede8e /src/shared | |
parent | 6a0bf109a7136eba01504842930ac070d1f55ee8 (diff) | |
download | ingen-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.hpp | 2 |
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)); |