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

List:       kde-commits
Subject:    Re: KDE/kdebase/apps/kwrite
From:       André_Wöbbeking <Woebbeking () onlinehome ! de>
Date:       2006-04-02 21:05:53
Message-ID: 200604022305.53621.Woebbeking () onlinehome ! de
[Download RAW message or body]

On Sunday 02 April 2006 22:46, Tim Beaulen wrote:
> SVN commit 525787 by beaulen:
>
> Less warnings about deprecated functions
>
>
>
>  M  +35 -27    kwritemain.cpp
>  M  +2 -1      kwritemain.h
>
>
> --- trunk/KDE/kdebase/apps/kwrite/kwritemain.cpp #525786:525787
> @@ -151,7 +151,9 @@
>
>  KWrite::~KWrite()
>  {
> -  winList.remove (this);
> +  int index = winList.indexOf(this);
> +  if( (index > -1) && (index < winList.size()) )
> +      winList.removeAt(index);

removeAll() is your friend.
[prev in list] [next in list] [prev in thread] [next in thread] 

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