summaryrefslogtreecommitdiff
path: root/src/installationmanager.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-05-30 21:32:04 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-05-30 21:32:04 +0200
commit1dc98e3af2f1c2296d4691c578e70d0ddeb810a1 (patch)
tree84d1538f279b1fa9c5defc0b0108440734013b24 /src/installationmanager.cpp
parente9595ec91a91c00b1fda58305796591b510efdbf (diff)
Small update to installation manager following uibase changes.
Diffstat (limited to 'src/installationmanager.cpp')
-rw-r--r--src/installationmanager.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp
index b5efc5f6..66fd2e97 100644
--- a/src/installationmanager.cpp
+++ b/src/installationmanager.cpp
@@ -527,12 +527,12 @@ IPluginInstaller::EInstallResult InstallationManager::doInstall(GuessedValue<QSt
}
-bool InstallationManager::wasCancelled()
+bool InstallationManager::wasCancelled() const
{
return m_ArchiveHandler->getLastError() == Archive::ERROR_EXTRACT_CANCELLED;
}
-bool InstallationManager::isRunning()
+bool InstallationManager::isRunning() const
{
return m_IsRunning;
}
@@ -828,9 +828,5 @@ void InstallationManager::registerInstaller(IPluginInstaller *installer)
QStringList InstallationManager::getSupportedExtensions() const
{
- QStringList result;
- foreach (const QString &extension, m_SupportedExtensions) {
- result.append(extension);
- }
- return result;
+ return QStringList(std::begin(m_SupportedExtensions), std::end(m_SupportedExtensions));
}