Commit a22b1692 authored by Laurent Montel's avatar Laurent Montel 😁

Remove deprecated method

parent dd7dbc0c
......@@ -40,6 +40,7 @@ find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS CoreAddons I18n Config Codec
add_definitions(-DTRANSLATION_DOMAIN=\"kcontacts5\")
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
add_definitions( -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT )
add_definitions( -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 )
add_subdirectory(src)
if(BUILD_TESTING)
......
......@@ -333,7 +333,7 @@ void AddresseeList::sortByField(Field *field)
KContacts::FieldSortMode *mode = new KContacts::FieldSortMode(sActiveField, !d->mReverseSorting);
KContacts::Addressee::setSortMode(mode);
qSort(*this);
std::sort((*this).begin(), (*this).end());
KContacts::Addressee::setSortMode(nullptr);
delete mode;
......@@ -346,7 +346,7 @@ void AddresseeList::sortByMode(SortMode *mode)
}
KContacts::Addressee::setSortMode(mode);
qSort(*this);
std::sort((*this).begin(), (*this).end());
KContacts::Addressee::setSortMode(nullptr);
}
......
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