From 41be7e9bbe07e20104499968dfd5001f3f7e75fe Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 7 May 2023 17:54:25 +0800 Subject: [PATCH] Make function const --- src/base/search/searchpluginmanager.cpp | 2 +- src/base/search/searchpluginmanager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/search/searchpluginmanager.cpp b/src/base/search/searchpluginmanager.cpp index b697ef05b..0624256cd 100644 --- a/src/base/search/searchpluginmanager.cpp +++ b/src/base/search/searchpluginmanager.cpp @@ -366,7 +366,7 @@ QString SearchPluginManager::categoryFullName(const QString &categoryName) return categoryTable.value(categoryName); } -QString SearchPluginManager::pluginFullName(const QString &pluginName) +QString SearchPluginManager::pluginFullName(const QString &pluginName) const { return pluginInfo(pluginName) ? pluginInfo(pluginName)->fullName : QString(); } diff --git a/src/base/search/searchpluginmanager.h b/src/base/search/searchpluginmanager.h index fcba073f0..35ec0cf18 100644 --- a/src/base/search/searchpluginmanager.h +++ b/src/base/search/searchpluginmanager.h @@ -88,7 +88,7 @@ public: static PluginVersion getPluginVersion(const Path &filePath); static QString categoryFullName(const QString &categoryName); - QString pluginFullName(const QString &pluginName); + QString pluginFullName(const QString &pluginName) const; static Path pluginsLocation(); static Path engineLocation();