Commit 5eafd4db authored by Laurent Montel's avatar Laurent Montel 😁

Don't use deprecated method

parent 5e6f67b4
......@@ -85,6 +85,7 @@ set_package_properties(KF5AkonadiSearch PROPERTIES DESCRIPTION "The Akonadi Sear
include_directories(${kaddressbook_SOURCE_DIR} ${kaddressbook_BINARY_DIR})
add_definitions(-DQT_USE_QSTRINGBUILDER)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions( -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 )
find_package(KF5Prison ${KF5_VERSION} CONFIG)
set_package_properties(Prison PROPERTIES DESCRIPTION "The Prison library" URL "http://projects.kde.org/prison" TYPE OPTIONAL PURPOSE "Needed to show mobile barcodes of your contacts")
......
......@@ -85,5 +85,5 @@ ContactSorter::ContactSorter(KAddressBookImportExport::KAddressBookImportExportC
void ContactSorter::sort(KContacts::Addressee::List &contacts) const
{
qStableSort(contacts.begin(), contacts.end(), ContactSortHelper(mSortField, mSortOrder));
std::stable_sort(contacts.begin(), contacts.end(), ContactSortHelper(mSortField, mSortOrder));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment