Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Dec 14, 2023
1 parent 1657824 commit 1db5049
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,21 @@ jobs:
compiler: g++
compiler_package: g++
with_qt6: false
with_native_notifications: true

- os: ubuntu-20.04
buildname: Linux-Clang
compiler: clang++
compiler_package: clang
with_qt6: false
with_native_notifications: true

- os: ubuntu-latest
buildname: Qt 6
compiler: g++
compiler_package: g++
with_qt6: true
with_native_notifications: false
coverage: true
compiler_flags: >-
--coverage
Expand Down Expand Up @@ -74,7 +77,8 @@ jobs:
'-DCMAKE_CXX_COMPILER=${{matrix.compiler}}',
'-DCMAKE_CXX_FLAGS=${{matrix.compiler_flags}}',
'-DCMAKE_C_FLAGS=${{matrix.compiler_flags}}',
'-DWITH_QT6=${{matrix.with_qt6}}'
'-DWITH_QT6=${{matrix.with_qt6}}',
'-DWITH_NATIVE_NOTIFICATIONS=${{matrix.with_native_notifications}}'
]
- name: Create gnupg directory for tests
Expand Down
4 changes: 2 additions & 2 deletions src/item/itemstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ void cleanDataFiles(const QStringList &tabNames)
}

#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
const QSet fileSet(files.constBegin(), files.constEnd());
const QSet<QString> fileSet(files.constBegin(), files.constEnd());
#else
const QSet fileSet = files.toSet();
const QSet<QString> fileSet = files.toSet();
#endif
for ( const auto &i1 : dir.entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot) ) {
QDir d1(i1.absoluteFilePath());
Expand Down

0 comments on commit 1db5049

Please sign in to comment.