kurlrequester.cpp compile error

Kurt Pfeifle k1pfeifle at gmx.net
Thu Jan 20 12:07:29 GMT 2005


On Thursday 20 January 2005 09:00, David Faure wrote:
> On Thursday 20 January 2005 08:46, Martin Koller wrote:
> > FYI, CVS from now
> > 
> > kurlrequester.cpp: In member function `void KURLRequester::slotUpdateURL()':
> > kurlrequester.cpp:381: syntax error before `+' token
> 
> Huh?
> Does this help? (this is what the code was before I touched that method, but I really
> can't see why it would make a difference).
> Which compiler btw?

Here is mine (same problem):

kdedev-[SCR]@p1515:~/src/kde> gcc --version
gcc (GCC) 3.3.3 (SuSE Linux)

> --- kurlrequester.cpp   19 Jan 2005 21:52:30 -0000      1.59
> +++ kurlrequester.cpp   20 Jan 2005 08:59:57 -0000
> @@ -378,7 +378,8 @@ KComboBox * KURLRequester::comboBox() co
>  void KURLRequester::slotUpdateURL()
>  {
>      // bin compat, myButton is declared as QPushButton
> -    KURL u( KURL( QDir::currentDirPath() + '/' ), url() );
> +    KURL u;
> +    u = KURL( KURL( QDir::currentDirPath() + '/' ), url() );
>      (static_cast<KURLDragPushButton *>( myButton ))->setURL( u );
>  }




More information about the kde-core-devel mailing list