mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-22 06:28:52 -04:00
Fix Qt deprecation warnings
This commit is contained in:
parent
da0afd3939
commit
2872f1706c
2 changed files with 4 additions and 2 deletions
|
@ -29,6 +29,8 @@
|
||||||
#include "core/Uuid.h"
|
#include "core/Uuid.h"
|
||||||
#include "core/PasswordGenerator.h"
|
#include "core/PasswordGenerator.h"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
static const unsigned char KEEPASSHTTP_UUID_DATA[] = {
|
static const unsigned char KEEPASSHTTP_UUID_DATA[] = {
|
||||||
0x34, 0x69, 0x7a, 0x40, 0x8a, 0x5b, 0x41, 0xc0,
|
0x34, 0x69, 0x7a, 0x40, 0x8a, 0x5b, 0x41, 0xc0,
|
||||||
0x9f, 0x36, 0x89, 0x7d, 0x62, 0x3e, 0xcb, 0x31
|
0x9f, 0x36, 0x89, 0x7d, 0x62, 0x3e, 0xcb, 0x31
|
||||||
|
@ -387,7 +389,7 @@ QList<KeepassHttpProtocol::Entry> Service::findMatchingEntries(const QString& /*
|
||||||
priorities.insert(entry, sortPriority(entry, host, submitUrl, baseSubmitURL));
|
priorities.insert(entry, sortPriority(entry, host, submitUrl, baseSubmitURL));
|
||||||
|
|
||||||
//Sort by priorities
|
//Sort by priorities
|
||||||
qSort(pwEntries.begin(), pwEntries.end(), SortEntries(priorities, HttpSettings::sortByTitle() ? "Title" : "UserName"));
|
std::sort(pwEntries.begin(), pwEntries.end(), SortEntries(priorities, HttpSettings::sortByTitle() ? "Title" : "UserName"));
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (pwEntries.count() > 0)
|
//if (pwEntries.count() > 0)
|
||||||
|
|
|
@ -131,7 +131,7 @@ void TestGroupModel::test()
|
||||||
QCOMPARE(spyMoved.count(), 3);
|
QCOMPARE(spyMoved.count(), 3);
|
||||||
QVERIFY(index12.isValid());
|
QVERIFY(index12.isValid());
|
||||||
QCOMPARE(model->data(index12).toString(), QString("group12"));
|
QCOMPARE(model->data(index12).toString(), QString("group12"));
|
||||||
QCOMPARE(model->data(index12.child(0, 0)).toString(), QString("group121"));
|
QCOMPARE(model->data(index12.model()->index(0, 0, index12)).toString(), QString("group121"));
|
||||||
|
|
||||||
delete group12;
|
delete group12;
|
||||||
QCOMPARE(spyAboutToAdd.count(), 1);
|
QCOMPARE(spyAboutToAdd.count(), 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue