From 7f7c722429d80f04ad8eaee97733bd5a345392c4 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Tue, 15 Apr 2014 18:53:00 +0200 Subject: [PATCH] More cosmetic changes --- companion/src/firmwares/opentx/opentxeeprom.cpp | 6 ++++-- companion/src/firmwares/opentx/opentxinterface.cpp | 3 ++- companion/src/mdichild.cpp | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index 988128d07..a0f5124c9 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -317,7 +317,8 @@ class SourcesConversionTable: public ConversionTable { std::list SourcesConversionTable::internalCache; -void OpenTxEepromCleanup(void){ +void OpenTxEepromCleanup(void) +{ SourcesConversionTable::Cleanup(); SwitchesConversionTable::Cleanup(); } @@ -1458,7 +1459,8 @@ class LogicalSwitchField: public TransformedField { } } - ~LogicalSwitchField() { + ~LogicalSwitchField() + { delete andswitchesConversionTable; } virtual void beforeExport() diff --git a/companion/src/firmwares/opentx/opentxinterface.cpp b/companion/src/firmwares/opentx/opentxinterface.cpp index fd7b1d3ac..dad382017 100644 --- a/companion/src/firmwares/opentx/opentxinterface.cpp +++ b/companion/src/firmwares/opentx/opentxinterface.cpp @@ -1233,7 +1233,8 @@ void RegisterOpen9xFirmwares() } } -void UnregisterOpen9xFirmwares() { +void UnregisterOpen9xFirmwares() +{ foreach (FirmwareInfo * f, firmwares) { qDebug() << "UnregisterOpen9xFirmwares(): deleting " << QString::number(reinterpret_cast(f), 16 ); delete f; diff --git a/companion/src/mdichild.cpp b/companion/src/mdichild.cpp index 3be909f22..df47f3e10 100644 --- a/companion/src/mdichild.cpp +++ b/companion/src/mdichild.cpp @@ -82,7 +82,8 @@ MdiChild::MdiChild(): } } -MdiChild::~MdiChild() { +MdiChild::~MdiChild() +{ delete ui; }