From 58dfe284ca3e60d828c7bc233514055000a781b4 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 24 Nov 2005 12:52:11 +0000 Subject: [PATCH] uninitialized field in SUIT_DataOwnerPtrList --- src/SUIT/SUIT_DataOwner.cxx | 9 +-------- src/SUIT/SUIT_DataOwner.h | 3 +-- 2 files changed, 2 insertions(+), 10 deletions(-) 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 -- 2.39.2