r21573 by jghali - #14406, fix another build issue: use c++98 compatible code as OpenSuse 42.1 does not use c++11 per default

scribus-commit scribus-commit at lists.scribus.net
Sun Dec 4 21:03:15 UTC 2016


Author: jghali
Date: Sun Dec  4 21:03:15 2016
New Revision: 21573

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21573
Log:
#14406, fix another build issue: use c++98 compatible code as OpenSuse 42.1 does not use c++11 per default

Modified:
    trunk/Scribus/scribus/text/index.cpp

Modified: trunk/Scribus/scribus/text/index.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21573&path=/trunk/Scribus/scribus/text/index.cpp
==============================================================================
--- trunk/Scribus/scribus/text/index.cpp	(original)
+++ trunk/Scribus/scribus/text/index.cpp	Sun Dec  4 21:03:15 2016
@@ -14,7 +14,7 @@
 // find run with runStart <= pos < runEnd
 uint RunIndex::search(int pos) const
 {
-	std::vector<uint>::const_iterator it = std::upper_bound(runEnds.cbegin(), runEnds.cend(), pos);
+	std::vector<uint>::const_iterator it = std::upper_bound(runEnds.begin(), runEnds.end(), pos);
 	return it - runEnds.begin();
 }
 




More information about the scribus-commit mailing list