Mailinglist Archive: yast-commit (747 mails)

< Previous Next >
[yast-commit] r39188 - /branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc
  • From: sh-sh-sh@xxxxxxxxxxxxxxxx
  • Date: Thu, 05 Jul 2007 12:56:55 -0000
  • Message-id: <20070705125655.D44EF354BD@xxxxxxxxxxxxxxxx>
Author: sh-sh-sh
Date: Thu Jul  5 14:56:55 2007
New Revision: 39188

URL: http://svn.opensuse.org/viewcvs/yast?rev=39188&view=rev
Log:
dynamic cast

Modified:
    branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc

Modified: branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc?rev=39188&r1=39187&r2=39188&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc Thu Jul  5 14:56:55 2007
@@ -51,7 +51,7 @@
     , hotlabel( 0 )
     , hotfkey( 0 )
 {
-  NCWidget * myparent = (NCWidget *)parent->widgetRep();
+  NCWidget * myparent = dynamic_cast<NCWidget *> (parent);
     
   if ( myparent ) {
     ReparentTo( *myparent );

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages