summaryrefslogtreecommitdiff
path: root/x11/kdelibs3/patches/patch-db
blob: b7e747cfc2c36f1fe80573a0c6594f98ca37fec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-db,v 1.4 2006/06/01 13:39:10 markd Exp $

For some reason, g++-2.95 on NetBSD 1.6.2/i386 did not accept the ==
operator here. The QT documentation says that using QString::compare is
equivalent.

--- khtml/rendering/font.h.orig	Mon Oct 10 17:06:06 2005
+++ khtml/rendering/font.h	Tue Dec 20 20:24:55 2005
@@ -43,7 +43,7 @@ public:
     FontDef()
         : size( 0 ), italic( false ), smallCaps( false ), weight( 50 ) {}
     bool operator == ( const FontDef &other ) const {
-        return ( family == other.family &&
+        return ( QString::compare(family, other.family) == 0 &&
                  size == other.size &&
                  italic == other.italic &&
                  smallCaps == other.smallCaps &&