fix build with llvm7: don't compare QString::contains() > 0

This commit is contained in:
naddy 2019-01-21 20:55:38 +00:00
parent 2a85bbc9da
commit 2f8e4eb238
2 changed files with 16 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.30 2018/10/24 14:28:09 sthen Exp $
# $OpenBSD: Makefile,v 1.31 2019/01/21 20:55:38 naddy Exp $
COMMENT= multiplatform Jabber client
DISTNAME= psi-0.15
REVISION= 9
REVISION= 10
CATEGORIES= net
HOMEPAGE= http://psi-im.org/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-iris_src_xmpp_xmpp-im_filetransfer_cpp,v 1.1 2019/01/21 20:55:38 naddy Exp $
Index: iris/src/xmpp/xmpp-im/filetransfer.cpp
--- iris/src/xmpp/xmpp-im/filetransfer.cpp.orig
+++ iris/src/xmpp/xmpp-im/filetransfer.cpp
@@ -422,7 +422,7 @@ FileTransfer *FileTransferManager::takeIncoming()
bool FileTransferManager::isActive(const FileTransfer *ft) const
{
- return d->list.contains(const_cast<FileTransfer*>(ft)) > 0;
+ return d->list.contains(const_cast<FileTransfer*>(ft));
}
void FileTransferManager::setDisabled(const QString &ns, bool state)