1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

More fixes for kdelibs-kde4 for clang7. Same kind of change

as previous commit -- >0 is weird for bools.

Reported by:	antoine
This commit is contained in:
Adriaan de Groot 2018-08-26 09:39:31 +00:00
parent 033bbbf6cc
commit 04a601c50e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478113
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- kio/kfile/kopenwithdialog.cpp.orig 2018-08-26 09:15:08 UTC
+++ kio/kfile/kopenwithdialog.cpp
@@ -713,7 +713,7 @@ void KOpenWithDialog::slotHighlighted(const QString& e
// ### indicate that default value was restored
d->terminal->setChecked(d->curService->terminal());
QString terminalOptions = d->curService->terminalOptions();
- d->nocloseonexit->setChecked((terminalOptions.contains(QLatin1String("--noclose")) > 0));
+ d->nocloseonexit->setChecked(bool(terminalOptions.contains(QLatin1String("--noclose"))));
d->m_terminaldirty = false; // slotTerminalToggled changed it
}
}

View File

@ -0,0 +1,11 @@
--- kio/kfile/kpropertiesdialog.cpp.orig 2018-08-26 08:56:17 UTC
+++ kio/kfile/kpropertiesdialog.cpp
@@ -3306,7 +3306,7 @@ void KDesktopPropsPlugin::slotAdvanced()
if (preferredTerminal == "konsole")
{
- terminalCloseBool = (d->m_terminalOptionStr.contains( "--noclose" ) > 0);
+ terminalCloseBool = bool(d->m_terminalOptionStr.contains( "--noclose" ));
w.terminalCloseCheck->setChecked(terminalCloseBool);
d->m_terminalOptionStr.remove( "--noclose");
}