summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_formats.h
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/rgw/rgw_formats.h
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/rgw/rgw_formats.h')
-rw-r--r--src/rgw/rgw_formats.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rgw/rgw_formats.h b/src/rgw/rgw_formats.h
index 9ce841a5548..9df5251fb19 100644
--- a/src/rgw/rgw_formats.h
+++ b/src/rgw/rgw_formats.h
@@ -22,7 +22,7 @@ struct plain_stack_entry {
class RGWFormatter_Plain : public Formatter {
void reset_buf();
public:
- RGWFormatter_Plain(bool use_kv = false);
+ explicit RGWFormatter_Plain(bool use_kv = false);
virtual ~RGWFormatter_Plain();
virtual void set_status(int status, const char* status_name) {};
@@ -69,7 +69,7 @@ protected:
formatter = f;
}
public:
- RGWFormatterFlusher(Formatter *f) : formatter(f), flushed(false), started(false) {}
+ explicit RGWFormatterFlusher(Formatter *f) : formatter(f), flushed(false), started(false) {}
virtual ~RGWFormatterFlusher() {}
void flush() {