author | zecke <zecke> | 2004-02-05 17:19:47 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-05 17:19:47 (UTC) |
commit | 09c9d7deb71c0130959449c144b9a29488a7e14f (patch) (unidiff) | |
tree | 04f3b9c93a368908ad0f5c4e62ff144ba0a9a3b8 | |
parent | f6487edaaad38c6454fc50697d7884f0bc627489 (diff) | |
download | opie-09c9d7deb71c0130959449c144b9a29488a7e14f.zip opie-09c9d7deb71c0130959449c144b9a29488a7e14f.tar.gz opie-09c9d7deb71c0130959449c144b9a29488a7e14f.tar.bz2 |
Janitor: remove ulong ref
-rw-r--r-- | freetype/freetypefactoryimpl.cpp | 2 | ||||
-rw-r--r-- | freetype/freetypefactoryimpl.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/freetype/freetypefactoryimpl.cpp b/freetype/freetypefactoryimpl.cpp index 24fb13a..e779c7b 100644 --- a/freetype/freetypefactoryimpl.cpp +++ b/freetype/freetypefactoryimpl.cpp | |||
@@ -1,57 +1,57 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of the Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "fontfactoryttf_qws.h" | 20 | #include "fontfactoryttf_qws.h" |
21 | #include "freetypefactoryimpl.h" | 21 | #include "freetypefactoryimpl.h" |
22 | 22 | ||
23 | 23 | ||
24 | FreeTypeFactoryImpl::FreeTypeFactoryImpl() | 24 | FreeTypeFactoryImpl::FreeTypeFactoryImpl() |
25 | : factory(0), ref(0) | 25 | : factory(0) |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | FreeTypeFactoryImpl::~FreeTypeFactoryImpl() | 29 | FreeTypeFactoryImpl::~FreeTypeFactoryImpl() |
30 | { | 30 | { |
31 | delete factory; | 31 | delete factory; |
32 | } | 32 | } |
33 | 33 | ||
34 | QFontFactory *FreeTypeFactoryImpl::fontFactory() | 34 | QFontFactory *FreeTypeFactoryImpl::fontFactory() |
35 | { | 35 | { |
36 | if ( !factory ) | 36 | if ( !factory ) |
37 | factory = new QFontFactoryFT(); | 37 | factory = new QFontFactoryFT(); |
38 | return factory; | 38 | return factory; |
39 | } | 39 | } |
40 | 40 | ||
41 | QRESULT FreeTypeFactoryImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 41 | QRESULT FreeTypeFactoryImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
42 | { | 42 | { |
43 | *iface = 0; | 43 | *iface = 0; |
44 | if ( uuid == IID_QUnknown ) | 44 | if ( uuid == IID_QUnknown ) |
45 | *iface = this; | 45 | *iface = this; |
46 | else if ( uuid == IID_FontFactory ) | 46 | else if ( uuid == IID_FontFactory ) |
47 | *iface = this; | 47 | *iface = this; |
48 | 48 | ||
49 | if ( *iface ) | 49 | if ( *iface ) |
50 | (*iface)->addRef(); | 50 | (*iface)->addRef(); |
51 | return (*iface) ? QS_OK : QS_FALSE; | 51 | return (*iface) ? QS_OK : QS_FALSE; |
52 | } | 52 | } |
53 | 53 | ||
54 | Q_EXPORT_INTERFACE() | 54 | Q_EXPORT_INTERFACE() |
55 | { | 55 | { |
56 | Q_CREATE_INSTANCE( FreeTypeFactoryImpl ) | 56 | Q_CREATE_INSTANCE( FreeTypeFactoryImpl ) |
57 | } | 57 | } |
diff --git a/freetype/freetypefactoryimpl.h b/freetype/freetypefactoryimpl.h index 4c0d5f5..4d64888 100644 --- a/freetype/freetypefactoryimpl.h +++ b/freetype/freetypefactoryimpl.h | |||
@@ -7,34 +7,33 @@ | |||
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | 21 | ||
22 | #include <qpe/fontfactoryinterface.h> | 22 | #include <qpe/fontfactoryinterface.h> |
23 | 23 | ||
24 | class QFontFactoryFT; | 24 | class QFontFactoryFT; |
25 | 25 | ||
26 | class FreeTypeFactoryImpl : public FontFactoryInterface | 26 | class FreeTypeFactoryImpl : public FontFactoryInterface |
27 | { | 27 | { |
28 | public: | 28 | public: |
29 | FreeTypeFactoryImpl(); | 29 | FreeTypeFactoryImpl(); |
30 | virtual ~FreeTypeFactoryImpl(); | 30 | virtual ~FreeTypeFactoryImpl(); |
31 | 31 | ||
32 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 32 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
33 | Q_REFCOUNT | 33 | Q_REFCOUNT |
34 | 34 | ||
35 | virtual QFontFactory *fontFactory(); | 35 | virtual QFontFactory *fontFactory(); |
36 | 36 | ||
37 | private: | 37 | private: |
38 | QFontFactoryFT *factory; | 38 | QFontFactoryFT *factory; |
39 | ulong ref; | ||
40 | }; | 39 | }; |