summaryrefslogtreecommitdiffstats
path: root/arch/tde-extra/tde-tork/bp000-7576a4bf.diff
blob: 64db4299559c319ea1cfc543118e1021c58f7fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 7576a4bfe86835552ede116488e70baae64df9e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= <[email protected]>
Date: Tue, 11 May 2021 20:34:45 +0200
Subject: Fix ftbfs on Fedora 34
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

error: ordered comparison of pointer with integer zero (‘TQListViewItem*’ and ‘int’)

Signed-off-by: François Andriot <[email protected]>
---
 src/torkview.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/torkview.cpp b/src/torkview.cpp
index 1dd8b5d..ce32aea 100644
--- a/src/torkview.cpp
+++ b/src/torkview.cpp
@@ -1312,7 +1312,7 @@ void torkView::activeServersUpdated( const TQStringList &servers)
 	{
 		if ((*it).isEmpty())
 			continue;
-        if ( (tm = serverList->findItem((*it),1)) > 0){
+        if ( (tm = serverList->findItem((*it),1)) != NULL){
             tm->setPixmap(0,TQPixmap(SmallIcon("tork_green")));
         }else{
             tm = new TQListViewItem(serverList, (*it));
-- 
cgit v1.2.1