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

List:       kde-commits
Subject:    Re: kdebase/konqueror
From:       Daniel Teske <teske () squorn ! de>
Date:       2005-01-24 19:07:28
Message-ID: 41F54770.8010302 () squorn ! de
[Download RAW message or body]

 > > [..]

>>+  if( mainWindow->childFrame() &&  mainWindow->childFrame()->frameType()
>>== "Tabs") +  {
>>+    KonqFrameTabs *kft = dynamic_cast<KonqFrameTabs
>>*>(mainWindow->childFrame()); +    if(kft->childFrameList()->count())
>>+      kft->childFrameList()->at(0)->copyHistory( currentFrame );
>>+  }
>>    
>>
>
>   You need to check kft for null too.  dynamic_cast<> could fail.
>
>  
>
The dynmaic_cast<> can't fail, because the frameType() is "Tabs".
I should have used static_cast<> instead, will fix that.

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

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