summaryrefslogtreecommitdiff
authorsimon <simon>2002-04-30 14:19:15 (UTC)
committer simon <simon>2002-04-30 14:19:15 (UTC)
commitaa2118f85ef44f5eb22babe5cc53421d7d981a94 (patch) (side-by-side diff)
tree9bf42c8750d0ad5efb789e5fb3e1b2c43cdea25d
parent19d341250ca5c5f21ea278ebdc7050c5400e951f (diff)
downloadopie-aa2118f85ef44f5eb22babe5cc53421d7d981a94.zip
opie-aa2118f85ef44f5eb22babe5cc53421d7d981a94.tar.gz
opie-aa2118f85ef44f5eb22babe5cc53421d7d981a94.tar.bz2
- no default args in method impls
- don't unconditionally define _XOPEN_SOURCE (added comment about this being wrong) - fixed parameter shadowing problem in DesktopApplication ctor
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp4
-rw-r--r--core/launcher/qcopbridge.cpp10
-rw-r--r--core/launcher/transferserver.cpp10
3 files changed, 14 insertions, 10 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 43006f1..d5c16b3 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -136,8 +136,8 @@ void DesktopPowerAlerter::hideEvent( QHideEvent *e )
-DesktopApplication::DesktopApplication( int& argc, char **argv, Type t )
- : QPEApplication( argc, argv, t )
+DesktopApplication::DesktopApplication( int& argc, char **argv, Type appType )
+ : QPEApplication( argc, argv, appType )
{
QTimer *t = new QTimer( this );
diff --git a/core/launcher/qcopbridge.cpp b/core/launcher/qcopbridge.cpp
index c8af919..2d084fc 100644
--- a/core/launcher/qcopbridge.cpp
+++ b/core/launcher/qcopbridge.cpp
@@ -33,7 +33,11 @@
#include <qregexp.h>
#include <qcopchannel_qws.h>
+// actually this is wrong, _XOPEN_SOURCE should get defined on the commandline
+// and it should have a proper value assigned. (Simon)
+#if !defined(_XOPEN_SOURCE)
#define _XOPEN_SOURCE
+#endif
#include <pwd.h>
#include <sys/types.h>
#include <unistd.h>
@@ -46,8 +50,8 @@
const int block_size = 51200;
-QCopBridge::QCopBridge( Q_UINT16 port, QObject *parent = 0,
- const char* name = 0)
+QCopBridge::QCopBridge( Q_UINT16 port, QObject *parent,
+ const char* name )
: QServerSocket( port, 1, parent, name ),
desktopChannel( 0 ),
cardChannel( 0 )
@@ -169,7 +173,7 @@ void QCopBridge::timerEvent( QTimerEvent * )
}
-QCopBridgePI::QCopBridgePI( int socket, QObject *parent = 0, const char* name = 0 )
+QCopBridgePI::QCopBridgePI( int socket, QObject *parent, const char* name )
: QSocket( parent, name )
{
setSocket( socket );
diff --git a/core/launcher/transferserver.cpp b/core/launcher/transferserver.cpp
index 87a49eb..7294f9c 100644
--- a/core/launcher/transferserver.cpp
+++ b/core/launcher/transferserver.cpp
@@ -36,17 +36,17 @@
#include <qfileinfo.h>
#include <qregexp.h>
//#include <qpe/qcopchannel_qws.h>
-#include <qpe/qprocess.h>
#include <qpe/process.h>
#include <qpe/config.h>
#include <qpe/qcopenvelope_qws.h>
#include "transferserver.h"
+#include "qprocess.h"
const int block_size = 51200;
-TransferServer::TransferServer( Q_UINT16 port, QObject *parent = 0,
- const char* name = 0)
+TransferServer::TransferServer( Q_UINT16 port, QObject *parent,
+ const char* name )
: QServerSocket( port, 1, parent, name )
{
if ( !ok() )
@@ -81,7 +81,7 @@ bool accessAuthorized(QHostAddress peeraddress)
return ok;
}
-ServerPI::ServerPI( int socket, QObject *parent = 0, const char* name = 0 )
+ServerPI::ServerPI( int socket, QObject *parent, const char* name )
: QSocket( parent, name ) , dtp( 0 ), serversocket( 0 ), waitsocket( 0 )
{
state = Connected;
@@ -852,7 +852,7 @@ void ServerPI::timerEvent( QTimerEvent * )
}
-ServerDTP::ServerDTP( QObject *parent = 0, const char* name = 0)
+ServerDTP::ServerDTP( QObject *parent, const char* name )
: QSocket( parent, name ), mode( Idle ), createTargzProc( 0 ),
retrieveTargzProc( 0 ), gzipProc( 0 )
{