Skip to content

Commit

Permalink
[plugins] Fixup warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Oct 21, 2024
1 parent d7b1360 commit cfc3360
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")

include(FindPkgConfig)
include(FeatureSummary)
Expand Down
2 changes: 1 addition & 1 deletion lib/search/searchpluginmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void SearchPluginManager::loadSearchPlugins()
QDir pluginsDir(QString::fromUtf8(INSTALL_LIBDIR) + "/glacier-home/plugins/search");
QList<QString> pluginsLibList = pluginsDir.entryList(QDir::Files);

for (const QString& file : qAsConst(pluginsLibList)) {
for (const QString& file : std::as_const(pluginsLibList)) {
QPluginLoader pluginLoader(pluginsDir.path() + "/" + file);

QObject* plugin = pluginLoader.instance();
Expand Down

0 comments on commit cfc3360

Please sign in to comment.