From b3d8778a52576b66ab00b08aa939612136a49a01 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 17 Sep 2014 11:51:51 -0500 Subject: fix flint++ warnings --- include/datetime/formatter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/datetime/formatter.h') diff --git a/include/datetime/formatter.h b/include/datetime/formatter.h index 0d695e2..9b3699d 100644 --- a/include/datetime/formatter.h +++ b/include/datetime/formatter.h @@ -86,7 +86,7 @@ public: std::string relative_format(GDateTime* then, GDateTime* then_end=nullptr) const; protected: - Formatter(const std::shared_ptr&); + explicit Formatter(const std::shared_ptr&); virtual ~Formatter(); static const char* default_header_time_format(bool twelvehour, bool show_seconds); @@ -126,7 +126,7 @@ private: class PhoneFormatter: public Formatter { public: - PhoneFormatter(const std::shared_ptr& clock): Formatter(clock) { + explicit PhoneFormatter(const std::shared_ptr& clock): Formatter(clock) { header_format.set(default_header_time_format(is_locale_12h(), false)); } }; -- cgit v1.2.3