aboutsummaryrefslogtreecommitdiff
path: root/src/exporter.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-10-06 14:54:15 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-10-06 14:54:15 -0500
commit5e05830765bdcae09db297918d3aa0620371ccf3 (patch)
tree59c7ec75a0f03cf091ad5c0dc20210ecd48ff0a4 /src/exporter.h
parent460f8cc1f9e58f81566f289e5e01e8e598f38228 (diff)
downloadayatana-indicator-display-5e05830765bdcae09db297918d3aa0620371ccf3.tar.gz
ayatana-indicator-display-5e05830765bdcae09db297918d3aa0620371ccf3.tar.bz2
ayatana-indicator-display-5e05830765bdcae09db297918d3aa0620371ccf3.zip
fix warnings reported by flint++ -- explicit ctors, classes with virtual methods but no virtual dtor, #ifdef include guards
Diffstat (limited to 'src/exporter.h')
-rw-r--r--src/exporter.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/exporter.h b/src/exporter.h
index 6367f3a..8867d32 100644
--- a/src/exporter.h
+++ b/src/exporter.h
@@ -17,6 +17,9 @@
* Charles Kerr <charles.kerr@canonical.com>
*/
+#ifndef INDICATOR_DISPLAY_EXPORTER_H
+#define INDICATOR_DISPLAY_EXPORTER_H
+
#include <src/indicator.h>
#include <core/signal.h>
@@ -26,7 +29,7 @@
class Exporter
{
public:
- Exporter(const std::shared_ptr<Indicator>& indicator);
+ explicit Exporter(const std::shared_ptr<Indicator>& indicator);
~Exporter();
core::Signal<std::string>& name_lost();
@@ -38,3 +41,4 @@ private:
Exporter& operator=(const Exporter&) =delete;
};
+#endif /* INDICATOR_DISPLAY_EXPORTER_H */