summaryrefslogtreecommitdiffstats
path: root/src/erasure-code/jerasure
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2016-01-28 16:36:23 +0100
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2016-01-29 23:48:58 +0100
commitbbf0582342437d8deec7a42f395a33b0f09a1ed7 (patch)
tree6fe5a5a8a097f16231b7f7cc2663165ac0d36941 /src/erasure-code/jerasure
parentrgw/rgw_rest.cc: fix -Wsign-compare (diff)
downloadceph-bbf0582342437d8deec7a42f395a33b0f09a1ed7.tar.xz
ceph-bbf0582342437d8deec7a42f395a33b0f09a1ed7.zip
make ctors with one argument explicit
Use explicit keyword for constructors with one argument to prevent implicit usage as conversion functions. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to 'src/erasure-code/jerasure')
-rw-r--r--src/erasure-code/jerasure/ErasureCodeJerasure.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/erasure-code/jerasure/ErasureCodeJerasure.h b/src/erasure-code/jerasure/ErasureCodeJerasure.h
index df60dac6a35..67fc360a67e 100644
--- a/src/erasure-code/jerasure/ErasureCodeJerasure.h
+++ b/src/erasure-code/jerasure/ErasureCodeJerasure.h
@@ -36,7 +36,7 @@ public:
string ruleset_failure_domain;
bool per_chunk_alignment;
- ErasureCodeJerasure(const char *_technique) :
+ explicit ErasureCodeJerasure(const char *_technique) :
k(0),
DEFAULT_K("2"),
m(0),
@@ -155,7 +155,7 @@ public:
int **schedule;
int packetsize;
- ErasureCodeJerasureCauchy(const char *technique) :
+ explicit ErasureCodeJerasureCauchy(const char *technique) :
ErasureCodeJerasure(technique),
bitmatrix(0),
schedule(0)
@@ -208,7 +208,7 @@ public:
int **schedule;
int packetsize;
- ErasureCodeJerasureLiberation(const char *technique = "liberation") :
+ explicit ErasureCodeJerasureLiberation(const char *technique = "liberation") :
ErasureCodeJerasure(technique),
bitmatrix(0),
schedule(0)