From ad2a2087ba267d302b51ef5a57a691c0ef349cfe Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Sun, 8 Oct 2023 09:42:24 +0200 Subject: [PATCH] fix --- src/cred/CMakeLists.txt | 3 +-- src/dialogs/CMakeLists.txt | 5 ----- src/index/Query.cpp | 4 ---- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/cred/CMakeLists.txt b/src/cred/CMakeLists.txt index b21af0535..d8f1423db 100644 --- a/src/cred/CMakeLists.txt +++ b/src/cred/CMakeLists.txt @@ -1,5 +1,4 @@ -add_library(cred Cache.cpp CredentialHelper.cpp GitCredential.cpp - ${CREDENTIAL_IMPL_FILE}) +add_library(cred Cache.cpp CredentialHelper.cpp GitCredential.cpp) target_link_libraries(cred conf git Qt6::Core) diff --git a/src/dialogs/CMakeLists.txt b/src/dialogs/CMakeLists.txt index beee9a5ac..f306af706 100644 --- a/src/dialogs/CMakeLists.txt +++ b/src/dialogs/CMakeLists.txt @@ -39,11 +39,6 @@ target_compile_definitions( target_include_directories(dialogs PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) -find_package( - Qt6 - COMPONENTS Core5Compat - REQUIRED) - target_link_libraries( dialogs cli diff --git a/src/index/Query.cpp b/src/index/Query.cpp index d289eca68..c293a8b0d 100644 --- a/src/index/Query.cpp +++ b/src/index/Query.cpp @@ -185,8 +185,6 @@ class BooleanQuery : public Query { if (mKind == And) { // Remove commits that don't match the right hand side. QSet set(rhs.begin(), rhs.end()); -#else -#endif QMutableListIterator it(commits); while (it.hasNext()) { if (!set.contains(it.next())) @@ -195,8 +193,6 @@ class BooleanQuery : public Query { } else { // Add commits that aren't already in the result set. QSet set(commits.begin(), commits.end()); -#else -#endif foreach (const git::Commit &commit, rhs) { if (!set.contains(commit)) commits.append(commit);