Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rhabacker:branches:windows:mingw
kmymoney4
Fix-clang-compilation-error-ordered-comparison-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Fix-clang-compilation-error-ordered-comparison-between-pointer-and-zero.patch of Package kmymoney4
From a8b96282dd555a1299b98d83b4f93942cd7491fb Mon Sep 17 00:00:00 2001 From: Sebastian Hegler <sebastian@broken-by-design.com> Date: Sun, 26 Jan 2020 22:52:49 +0100 Subject: [PATCH] Fix clang compilation error "ordered comparison between pointer and zero" --- kmymoney/dialogs/kexportdlg.cpp | 2 +- kmymoney/mymoney/mymoneyreport.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kmymoney/dialogs/kexportdlg.cpp b/kmymoney/dialogs/kexportdlg.cpp index 805978de1..0942fae48 100644 --- a/kmymoney/dialogs/kexportdlg.cpp +++ b/kmymoney/dialogs/kexportdlg.cpp @@ -145,7 +145,7 @@ void KExportDlg::loadProfiles(const bool selectLast) } m_profileComboBox->setCurrentItem(0); - if (list.contains(current) > 0) + if (list.contains(current)) m_profileComboBox->setCurrentIndex(m_profileComboBox->findText(current, Qt::MatchExactly)); } diff --git a/kmymoney/mymoney/mymoneyreport.cpp b/kmymoney/mymoney/mymoneyreport.cpp index 117defc7f..d82ded9e8 100644 --- a/kmymoney/mymoney/mymoneyreport.cpp +++ b/kmymoney/mymoney/mymoneyreport.cpp @@ -888,7 +888,7 @@ bool MyMoneyReport::hasReferenceTo(const QString& id) const payees(list); tags(list); - return (list.contains(id) > 0); + return (list.contains(id)); } int MyMoneyReport::m_lineWidth = 2; -- GitLab
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor