Skip to content

Commit

Permalink
Fix LGTM issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gzotti committed Mar 8, 2021
1 parent b06c897 commit fc3f1ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/Oculars/src/Oculars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2732,7 +2732,7 @@ void Oculars::handleMagnitudeLimits(PluginMode newMode)
}
else if ((pluginMode==OcOcular) || (pluginMode==OcFinder))
{
Q_ASSERT(newMode=OcNone);
Q_ASSERT(newMode==OcNone);
}
StelCore *core = StelApp::getInstance().getCore();
StelSkyDrawer *skyDrawer = core->getSkyDrawer();
Expand Down
2 changes: 1 addition & 1 deletion plugins/Oculars/src/Oculars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ private slots:

QFont font; //!< The font used for drawing labels.
PluginMode pluginMode; //!< Current operational mode
// The next 4 are mutually exclusive "slave mode" flags to keep the buttons in the GUI show active/inactive highlight state.
// The next 4 are mutually exclusive "slave mode" flags to keep the buttons in the GUI showing active/inactive highlight state.
bool flagModeOcular; //!< flag used to track if we are in ocular mode.
bool flagModeSensor; //!< flag used to track if we are in CCD mode.
bool flagModeTelrad; //!< flag used to track if we are in Telrad mode.
Expand Down
1 change: 1 addition & 0 deletions plugins/Oculars/src/gui/OcularsGuiPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ OcularsGuiPanel::~OcularsGuiPanel()

delete buttonCrosshairs; buttonCrosshairs = Q_NULLPTR;
delete buttonCcd; buttonCcd = Q_NULLPTR;
delete buttonFinder; buttonFinder= Q_NULLPTR;
delete buttonTelrad; buttonTelrad = Q_NULLPTR;
delete buttonConfiguration; buttonConfiguration = Q_NULLPTR;
delete fieldOcularFl; fieldOcularFl = Q_NULLPTR;
Expand Down

0 comments on commit fc3f1ec

Please sign in to comment.