Fix build for QSet.

This commit is contained in:
Martin Rotter 2020-05-07 08:40:57 +02:00
parent 5dbd4579ed
commit dde22b4828
3 changed files with 12 additions and 5 deletions
.travis.yml
resources/text
src/librssguard/services/abstract

@ -1,6 +1,5 @@
language: cpp
osx_image: xcode9.4
sudo: required
dist: xenial
os:
- linux
@ -15,7 +14,6 @@ notifications:
deploy:
- provider: releases
file_glob: true
skip_cleanup: true
api_key: $GH_TOKEN
file:
- rssguard-build/src/rssguard/rss*.AppImage
@ -27,7 +25,6 @@ deploy:
file: .travis-bintray-desc.json
user: martinrotter
key: $BINTRAY_KEY
skip_cleanup: true
on:
all_branches: true

@ -8,7 +8,6 @@ Fixed/changed:
▪ Translations synced.
▪ Big code refactoring, fixed almost all usages of Qt deprecated code.
▪ Completely overhauled Appveyor/Travis build scripts which are now more reliable.
3.6.0
—————
@ -36,7 +35,6 @@ Fixed/changed:
▪ Tray icon now shows correct number of unread messages upon app startup.
▪ Some resources are now installed to correct locations when using NSIS installer.
▪ Many fixes for build scripts for dev builds.
3.5.9
—————

@ -22,8 +22,14 @@ void CacheForServiceRoot::addMessageStatesToCache(const QList<Message>& ids_of_m
// Store changes, they will be sent to server later.
list_act.append(ids_of_messages);
#if QT_VERSION >= 0x050E00 // Qt >= 5.14.0
QSet<Message> set_act(list_act.begin(), list_act.end());
QSet<Message> set_other(list_other.begin(), list_other.end());
#else
QSet<Message> set_act = list_act.toSet();
QSet<Message> set_other = list_other.toSet();
#endif
// Now, we want to remove all IDS from list_other, which are contained in list.
set_other -= set_act;
@ -43,8 +49,14 @@ void CacheForServiceRoot::addMessageStatesToCache(const QStringList& ids_of_mess
// Store changes, they will be sent to server later.
list_act.append(ids_of_messages);
#if QT_VERSION >= 0x050E00 // Qt >= 5.14.0
QSet<QString> set_act(list_act.begin(), list_act.end());
QSet<QString> set_other(list_other.begin(), list_other.end());
#else
QSet<QString> set_act = list_act.toSet();
QSet<QString> set_other = list_other.toSet();
#endif
// Now, we want to remove all IDS from list_other, which are contained in list.
set_other -= set_act;