summaryrefslogtreecommitdiffhomepage
path: root/proto-flightgear
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-24 18:54:34 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-24 19:32:10 +0100
commita88e34b21b07f70123926fcb5c505d6afdf99807 (patch)
tree905059194dcc64c7c163b8912947d8173fd4cc91 /proto-flightgear
parent5bf85412e4eacf92acc936b6e74bce0e2b1055d9 (diff)
style/quality only
No functional changes. - add `override' everywhere where missing - almost pass clang's `-Wweak-vtables' - avoid some float/double conversions - remove unused private members - make signedness conversions explicit - put stuff in right namespaces to aid analysis
Diffstat (limited to 'proto-flightgear')
-rw-r--r--proto-flightgear/ftnoir_protocol_fg.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/proto-flightgear/ftnoir_protocol_fg.h b/proto-flightgear/ftnoir_protocol_fg.h
index 45cd0cad..4b4efa29 100644
--- a/proto-flightgear/ftnoir_protocol_fg.h
+++ b/proto-flightgear/ftnoir_protocol_fg.h
@@ -44,8 +44,8 @@ class flightgear : TR, public IProtocol
Q_OBJECT
public:
- void pose(const double *headpose);
- QString game_name() { return tr("FlightGear"); }
+ void pose(const double *headpose) override;
+ QString game_name() override { return tr("FlightGear"); }
module_status initialize() override;
private:
settings s;
@@ -59,8 +59,8 @@ class FGControls: public IProtocolDialog
Q_OBJECT
public:
FGControls();
- void register_protocol(IProtocol *) {}
- void unregister_protocol() {}
+ void register_protocol(IProtocol *) override {}
+ void unregister_protocol() override {}
private:
Ui::UICFGControls ui;
settings s;
@@ -73,6 +73,6 @@ class flightgearDll : public Metadata
{
Q_OBJECT
- QString name() { return tr("FlightGear"); }
- QIcon icon() { return QIcon(":/images/flightgear.png"); }
+ QString name() override { return tr("FlightGear"); }
+ QIcon icon() override { return QIcon(":/images/flightgear.png"); }
};