[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    [Kopete-devel] [PATCH] compilation fix for kopete/protocols/msn/msnsocket.cpp
From:       fenix <fenix () club-internet ! fr>
Date:       2002-07-10 23:15:20
[Download RAW message or body]

Hi,
 i have this error while compiling kopete with last CVS Head

msnsocket.cpp: In member function `void MSNSocket::sendCommand(const
QString&, const QString&, bool, const QString&)':
msnsocket.cpp:379: `exit' undeclared (first use this function)
msnsocket.cpp:379: (Each undeclared identifier is reported only once for
each function it appears in.)
make[3]: *** [msnsocket.lo] Erreur 1

I have done a little patch for fixing it using QApplication::exit

 FeniX




["msn.patch" (msn.patch)]

? kopete_msn_la.all_cpp.loT
Index: msnsocket.cpp
===================================================================
RCS file: /home/kde/kdenonbeta/kopete/protocols/msn/msnsocket.cpp,v
retrieving revision 1.19
diff -u -u -r1.19 msnsocket.cpp
--- msnsocket.cpp	9 Jul 2002 21:14:23 -0000	1.19
+++ msnsocket.cpp	10 Jul 2002 22:59:32 -0000
@@ -19,6 +19,7 @@
 
 #include "msnsocket.h"
 
+#include <qapplication.h>
 #include <qregexp.h>
 #include <qtimer.h>
 
@@ -376,7 +377,7 @@
 {
         kdDebug() << "MSNSocket::sendCommand: Forgot to utf8 convert the body " << cmd <<
 	  ": '" << args << "'" << endl;
-	exit(2);
+	QApplication::exit(2);
 }
 
 QString MSNSocket::escape( const QString &str )

_______________________________________________
Kopete-devel mailing list
Kopete-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kopete-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic