[libcalamares] Move const to a better spot

This commit is contained in:
Adriaan de Groot 2021-10-29 11:25:13 +02:00
parent ebf8d63669
commit d3d4690a81
2 changed files with 3 additions and 3 deletions

View File

@ -269,8 +269,8 @@ Settings::Settings( const QString& settingsFilePath, bool debugMode )
s_instance = this; s_instance = this;
} }
const bool bool
Settings::isModuleEnabled( const QString& module ) Settings::isModuleEnabled( const QString& module ) const
{ {
// Iterate over the list of modules searching for a match // Iterate over the list of modules searching for a match
for ( const auto& moduleInstance : qAsConst( m_moduleInstances ) ) for ( const auto& moduleInstance : qAsConst( m_moduleInstances ) )

View File

@ -162,7 +162,7 @@ public:
* full module key+id (e.g. packagechooser@packagechooser) * full module key+id (e.g. packagechooser@packagechooser)
* *
*/ */
const bool isModuleEnabled( const QString& module ); bool isModuleEnabled( const QString& module ) const;
/** @brief Global setting of disable-cancel: can't cancel ever. */ /** @brief Global setting of disable-cancel: can't cancel ever. */
bool disableCancel() const { return m_disableCancel; } bool disableCancel() const { return m_disableCancel; }