From: asl Date: Thu, 24 Nov 2005 12:52:11 +0000 (+0000) Subject: uninitialized field in SUIT_DataOwnerPtrList X-Git-Tag: BR_3_1_0_deb~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=58dfe284ca3e60d828c7bc233514055000a781b4;p=modules%2Fgui.git uninitialized field in SUIT_DataOwnerPtrList --- diff --git a/src/SUIT/SUIT_DataOwner.cxx b/src/SUIT/SUIT_DataOwner.cxx index 401b763df..603da20aa 100755 --- a/src/SUIT/SUIT_DataOwner.cxx +++ b/src/SUIT/SUIT_DataOwner.cxx @@ -38,14 +38,6 @@ bool operator==( const SUIT_DataOwnerPtr& p1, const SUIT_DataOwnerPtr& p2 ) */ //******************************************************************** -//==================================================================== -//! Constructor (default) -//==================================================================== -SUIT_DataOwnerPtrList::SUIT_DataOwnerPtrList() -: QValueList() -{ -} - //==================================================================== //! Constructor (default) //==================================================================== @@ -116,6 +108,7 @@ SUIT_DataOwnerPtrList::iterator SUIT_DataOwnerPtrList::append( const SUIT_DataOw { if ( mySkipEqual ) return it; + const _typeinfo& ti1 = typeid( *((*it).operator->()) ); const _typeinfo& ti2 = typeid( *(x.operator->()) ); diff --git a/src/SUIT/SUIT_DataOwner.h b/src/SUIT/SUIT_DataOwner.h index c78679e75..9c1b758b6 100755 --- a/src/SUIT/SUIT_DataOwner.h +++ b/src/SUIT/SUIT_DataOwner.h @@ -36,8 +36,7 @@ bool operator==( const SUIT_DataOwnerPtr&, const SUIT_DataOwnerPtr& ); class SUIT_EXPORT SUIT_DataOwnerPtrList : public QValueList { public: - SUIT_DataOwnerPtrList();//!< constructor - SUIT_DataOwnerPtrList( const bool skipAllEqal );//!< constructor + SUIT_DataOwnerPtrList( const bool skipAllEqal = true );//!< constructor SUIT_DataOwnerPtrList( const SUIT_DataOwnerPtrList& l );//!< copy constructor SUIT_DataOwnerPtrList( const SUIT_DataOwnerPtrList& l, const bool skipAllEqal );//!< copy constructor #ifndef QT_NO_STL