r24460 by jghali - Fix Qt deprecation warning

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 8 21:47:09 UTC 2021


Author: jghali
Date: Mon Feb  8 21:47:09 2021
New Revision: 24460

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24460
Log:
Fix Qt deprecation warning

Modified:
    trunk/Scribus/scribus/scimagecachemanager.cpp

Modified: trunk/Scribus/scribus/scimagecachemanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24460&path=/trunk/Scribus/scribus/scimagecachemanager.cpp
==============================================================================
--- trunk/Scribus/scribus/scimagecachemanager.cpp	(original)
+++ trunk/Scribus/scribus/scimagecachemanager.cpp	Mon Feb  8 21:47:09 2021
@@ -17,6 +17,8 @@
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
+
+#include <algorithm>
 
 #include <QDateTime>
 #include <QDir>
@@ -320,7 +322,7 @@
 
 void ScImageCacheManager::MetaAgeList::remove(ScImageCacheFile *p)
 {
-	FAL::iterator i = qBinaryFind(m_fa.begin(), m_fa.end(), p, ageLessThan);
+	FAL::iterator i = std::lower_bound(m_fa.begin(), m_fa.end(), p, ageLessThan);
 	Q_ASSERT(i != m_fa.end());
 	if (i != m_fa.end())
 		m_fa.erase(i);




More information about the scribus-commit mailing list