From 176f56de13e64796a8397d1b5867e59ae9cebc16 Mon Sep 17 00:00:00 2001 From: Stefan Kebekus Date: Thu, 14 Oct 2021 18:17:22 +0200 Subject: [PATCH] Beautification --- 3rdParty/CMakeLists.txt | 2 +- 3rdParty/android_openssl | 2 +- src/CMakeLists.txt | 22 +++++++++++----------- src/Global.cpp | 1 - src/dataManagement/Downloadable.cpp | 4 ---- src/geomaps/GeoMapProvider.cpp | 3 ++- 6 files changed, 15 insertions(+), 19 deletions(-) diff --git a/3rdParty/CMakeLists.txt b/3rdParty/CMakeLists.txt index 0d46f1baf..280c07245 100644 --- a/3rdParty/CMakeLists.txt +++ b/3rdParty/CMakeLists.txt @@ -18,7 +18,7 @@ add_subdirectory(${qhttpengine_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/qhttpengi # if (ANDROID) - set(openssl_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/android_openssl/latest CACHE INTERNAL "" FORCE) + add_subdirectory(android_openssl) endif() diff --git a/3rdParty/android_openssl b/3rdParty/android_openssl index eb8c415bf..aa3c67c59 160000 --- a/3rdParty/android_openssl +++ b/3rdParty/android_openssl @@ -1 +1 @@ -Subproject commit eb8c415bfb4cc2df00d83bc9502b4d2848f1be5a +Subproject commit aa3c67c59160715216e89ae2c48291d6021601fa diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a14cc144c..f4eed8473 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -234,17 +234,17 @@ if( ANDROID ) add_compile_definitions(MANUAL_LOCATION="/android_asset/manual") # The android target depends on our own copy of openssl - set(ANDROID_EXTRA_LIBS - ${openssl_SOURCE_DIR}/arm/libcrypto_1_1.so - ${openssl_SOURCE_DIR}/arm/libssl_1_1.so - ${openssl_SOURCE_DIR}/arm64/libcrypto_1_1.so - ${openssl_SOURCE_DIR}/arm64/libssl_1_1.so - ${openssl_SOURCE_DIR}/x86/libcrypto_1_1.so - ${openssl_SOURCE_DIR}/x86/libssl_1_1.so - ${openssl_SOURCE_DIR}/x86_64/libcrypto_1_1.so - ${openssl_SOURCE_DIR}/x86_64/libssl_1_1.so - CACHE INTERNAL "" - ) +# set(ANDROID_EXTRA_LIBS + # ${openssl_SOURCE_DIR}/arm/libcrypto_1_1.so + # ${openssl_SOURCE_DIR}/arm/libssl_1_1.so + # ${openssl_SOURCE_DIR}/arm64/libcrypto_1_1.so + # ${openssl_SOURCE_DIR}/arm64/libssl_1_1.so + # ${openssl_SOURCE_DIR}/x86/libcrypto_1_1.so + # ${openssl_SOURCE_DIR}/x86/libssl_1_1.so + # ${openssl_SOURCE_DIR}/x86_64/libcrypto_1_1.so + #${openssl_SOURCE_DIR}/x86_64/libssl_1_1.so + # CACHE INTERNAL "" + # ) # The android target is a library, not an executable add_library(${PROJECT_NAME} SHARED ${SOURCES} ${ANDROID_EXTRA_SOURCES}) diff --git a/src/Global.cpp b/src/Global.cpp index 1ab12ff6e..45309c15c 100644 --- a/src/Global.cpp +++ b/src/Global.cpp @@ -76,7 +76,6 @@ Global::Global(QObject *parent) : QObject(parent) } -#warning docu bool Global::ready() { if (isConstructing) { diff --git a/src/dataManagement/Downloadable.cpp b/src/dataManagement/Downloadable.cpp index e82ef77ff..2a161ff57 100644 --- a/src/dataManagement/Downloadable.cpp +++ b/src/dataManagement/Downloadable.cpp @@ -240,11 +240,7 @@ void DataManagement::Downloadable::startFileDownload() { connect(_networkReplyDownloadFile, &QNetworkReply::finished, this, &Downloadable::downloadFileFinished); connect(_networkReplyDownloadFile, &QNetworkReply::readyRead, this, &Downloadable::downloadFilePartialDataReceiver); connect(_networkReplyDownloadFile, &QNetworkReply::downloadProgress, this, &Downloadable::downloadFileProgressReceiver); -#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) connect(_networkReplyDownloadFile, &QNetworkReply::errorOccurred, this, &Downloadable::downloadFileErrorReceiver); -#else - connect(_networkReplyDownloadFile, static_cast(&QNetworkReply::error), this, &Downloadable::downloadFileErrorReceiver); -#endif _downloadProgress = 0; // Emit signals as appropriate diff --git a/src/geomaps/GeoMapProvider.cpp b/src/geomaps/GeoMapProvider.cpp index 26011c720..2b689d219 100644 --- a/src/geomaps/GeoMapProvider.cpp +++ b/src/geomaps/GeoMapProvider.cpp @@ -23,11 +23,12 @@ #include #include #include +#include #include #include #include #include -#include +#include #include #include "GeoMapProvider.h"