summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2016-11-16 12:25:25 (GMT)
committerAlbert Astals Cid <aacid@kde.org>2016-11-16 12:25:44 (GMT)
commit304e496a87d3a9268f52b1d5875179c0fbee2c19 (patch)
tree4a77bd31dca87fd7674f2a45da296b6c10f3829f
parentf718b4cdf1a3cfef9aa7d1f98189d3dff80478bc (diff)
Compile with Qt 5.6v16.11.80
CCMAIL: gladhorn@kde.org
-rw-r--r--CMakeLists.txt2
-rw-r--r--lib/mimetypeutils.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6aacf82..b5ed808 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,7 +9,7 @@ set (KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATI
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
-set (QT_MIN_VERSION "5.7.0")
+set (QT_MIN_VERSION "5.6.0")
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
diff --git a/lib/mimetypeutils.cpp b/lib/mimetypeutils.cpp
index c3a58db..700e4fc 100644
--- a/lib/mimetypeutils.cpp
+++ b/lib/mimetypeutils.cpp
@@ -84,8 +84,8 @@ const QStringList& rasterImageMimeTypes()
{
static QStringList list;
if (list.isEmpty()) {
- auto supported = QImageReader::supportedMimeTypes();
- for (auto mime: qAsConst(supported)) {
+ const auto supported = QImageReader::supportedMimeTypes();
+ for (auto mime: supported) {
list << resolveAlias(QString::fromUtf8(mime));
}
// We don't want svg images to be considered as raster images