PATCH compile opie with gcc 3.x

From: Michael Lauer <mickey.a.t.tm.informatik.uni-frankfurt.de>
Date: Sun Jun 02 2002 - 19:00:57 EDT

Hi,

g++ 3.x chokes on repeating default arguments in the definition
of a method ==> approaching more c++ standard compliance (which
is a good thing, BTW).

Here is a patch which fixes the current opie-cvs to compile
with g++ 3.x (tested on 3.1 and 3.1.1)

<CUTHERE>

--- opie/libopie/ofileselector.cc.orig Thu May 9 12:33:18 2002
+++ opie/libopie/ofileselector.cc Mon Jun 3 00:49:25 2002
@@ -113,8 +113,8 @@
 }

 OFileSelector::OFileSelector(const QString &mimeFilter, QWidget *parent,
- const char *name, bool newVisible = TRUE,
- bool closeVisible = FALSE )
+ const char *name, bool newVisible,
+ bool closeVisible )
   : QWidget( parent, name )
 {
   m_mimetypes = QStringList::split(";", mimeFilter );

</CUTHERE>

By the way - since I don't have write access to the opie cvs (yet? :),
is it okay to post the patches here or is there another - more
appropriate list?

yours,

:M:

--
|----------------------------------------------------------------------------|
| Dipl.-Inf. Michael 'Mickey' Lauer    mickey@tm.informatik.uni-frankfurt.de |
|   Raum 10b - ++49 69 798 28358        Fachbereich Informatik und Biologie  |
|----------------------------------------------------------------------------|
Received on Sun Jun 02 23:00:59 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:50:07 EDT