Commit 10343db7 authored by Laurent Montel's avatar Laurent Montel 😁

Don't use deprecated method

parent 0baddd53
...@@ -47,6 +47,7 @@ find_package(KF5PimTextEdit ${PIMTEXTEDIT_LIB_VERSION} CONFIG REQUIRED) ...@@ -47,6 +47,7 @@ find_package(KF5PimTextEdit ${PIMTEXTEDIT_LIB_VERSION} CONFIG REQUIRED)
add_definitions(-DTRANSLATION_DOMAIN=\"libkpimidentities5\") add_definitions(-DTRANSLATION_DOMAIN=\"libkpimidentities5\")
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII") add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
add_definitions( -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT ) add_definitions( -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT )
add_definitions( -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 )
########### Targets ########### ########### Targets ###########
add_subdirectory(src) add_subdirectory(src)
......
...@@ -154,7 +154,7 @@ void IdentityManager::Private::readConfig(KConfig *config) ...@@ -154,7 +154,7 @@ void IdentityManager::Private::readConfig(KConfig *config)
<< "Marking first one as default."; << "Marking first one as default.";
mIdentities.first().setIsDefault(true); mIdentities.first().setIsDefault(true);
} }
qSort(mIdentities); std::sort(mIdentities.begin(), mIdentities.end());
shadowIdentities = mIdentities; shadowIdentities = mIdentities;
} }
...@@ -490,7 +490,7 @@ QStringList IdentityManager::shadowIdentities() const ...@@ -490,7 +490,7 @@ QStringList IdentityManager::shadowIdentities() const
void IdentityManager::sort() void IdentityManager::sort()
{ {
qSort(d->shadowIdentities); std::sort(d->shadowIdentities.begin(), d->shadowIdentities.end());
} }
IdentityManager::ConstIterator IdentityManager::begin() const IdentityManager::ConstIterator IdentityManager::begin() const
......
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