From kde-commits Tue Jan 14 19:00:29 2003 From: Andrew Stanley-Jones Date: Tue, 14 Jan 2003 19:00:29 +0000 To: kde-commits Subject: kdenetwork/ksirc X-MARC-Message: https://marc.info/?l=kde-commits&m=104257092702415 CVS commit by asj: 3 changes: 1. ahistline edit, comment out useless code, I think. 2. chanparser fix memoryp corruption 3. ksircprocess: make ksirc debugable M +3 -3 ahistlineedit.cpp 1.50 M +1 -1 ahistlineedit.h 1.23 M +2 -2 chanparser.cpp 1.64 M +6 -1 ksircprocess.cpp 1.105 --- kdenetwork/ksirc/ahistlineedit.cpp #1.49:1.50 @@ -349,5 +349,5 @@ void aHistLineEdit::focusOutEvent(QFocus emit lostFocus(); } - +#if 0 void aHistLineEdit::mousePressEvent ( QMouseEvent *e ) { @@ -361,5 +361,5 @@ void aHistLineEdit::mousePressEvent ( QM } } - +#endif bool aHistLineEdit::eventFilter( QObject *o, QEvent *e ) { --- kdenetwork/ksirc/ahistlineedit.h #1.22:1.23 @@ -35,5 +35,5 @@ protected: virtual void focusInEvent ( QFocusEvent * ); virtual void focusOutEvent ( QFocusEvent * ); - virtual void mousePressEvent ( QMouseEvent * ); +// virtual void mousePressEvent ( QMouseEvent * ); virtual bool eventFilter( QObject *o, QEvent *e ); --- kdenetwork/ksirc/chanparser.cpp #1.63:1.64 @@ -288,5 +288,5 @@ parseResult * ChannelParser::parseSSFEMs if(found < 1) { - delete nick; + delete[] nick; return new parseError(string, i18n("Could not find nick in string")); } @@ -297,5 +297,5 @@ parseResult * ChannelParser::parseSSFEMs top->nick_ring.removeFirst(); } - delete nick; + delete[] nick; return new parseSucc(QString::null); // Null string, don't display anything } --- kdenetwork/ksirc/ksircprocess.cpp #1.104:1.105 @@ -124,4 +124,9 @@ KSircProcess::KSircProcess( const QStrin proc = new KProcess(); +#ifndef NDEBUG + if(getuid() != 0) + proc->setRunPrivileged(true); /* make ksirc run under gdb as a user */ +#endif + server = qstrdup(_server);