aboutsummaryrefslogtreecommitdiff
path: root/include/datetime/formatter.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-09-19 14:34:50 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-09-19 14:34:50 +0000
commit16a4e034c30f2bc6b151b04707d3ec1a490dba44 (patch)
treef726165c9979fcb13ce478fd2dafa1ae1efad52b /include/datetime/formatter.h
parentac54aebec5fa0ba95fb2d583316c0a64ce3384dd (diff)
parentb3d8778a52576b66ab00b08aa939612136a49a01 (diff)
downloadayatana-indicator-datetime-16a4e034c30f2bc6b151b04707d3ec1a490dba44.tar.gz
ayatana-indicator-datetime-16a4e034c30f2bc6b151b04707d3ec1a490dba44.tar.bz2
ayatana-indicator-datetime-16a4e034c30f2bc6b151b04707d3ec1a490dba44.zip
Fix flint++ warnings
Approved by: Ted Gould, PS Jenkins bot
Diffstat (limited to 'include/datetime/formatter.h')
-rw-r--r--include/datetime/formatter.h4
1 files changed, 2 insertions, 2 deletions
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<const Clock>&);
+ explicit Formatter(const std::shared_ptr<const Clock>&);
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<const Clock>& clock): Formatter(clock) {
+ explicit PhoneFormatter(const std::shared_ptr<const Clock>& clock): Formatter(clock) {
header_format.set(default_header_time_format(is_locale_12h(), false));
}
};