Tag: cws_src680_warnings01 User: sb Date: 06/05/23 17:02:23 Modified: /dba/dbaccess/source/ui/tabledesign/ TableRowExchange.cxx
Log: RESYNC: (1.2-1.3); FILE MERGED File Changes: Directory: /dba/dbaccess/source/ui/tabledesign/ =============================================== File [changed]: TableRowExchange.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/tabledesign/TableRowExchange.cxx?r1=1.2.50.1&r2=1.2.50.2 Delta lines: +7 -10 -------------------- --- TableRowExchange.cxx 24 Mar 2006 15:36:31 -0000 1.2.50.1 +++ TableRowExchange.cxx 24 May 2006 00:02:20 -0000 1.2.50.2 @@ -49,7 +49,7 @@ { using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; - OTableRowExchange::OTableRowExchange(const ::std::vector<OTableRow*>& _rvTableRow) + OTableRowExchange::OTableRowExchange(const ::std::vector< ::boost::shared_ptr<OTableRow> >& _rvTableRow) : m_vTableRow(_rvTableRow) { } @@ -58,11 +58,11 @@ { if(nUserObjectId == SOT_FORMATSTR_ID_SBA_TABED) { - ::std::vector<OTableRow*>* pRows = reinterpret_cast< ::std::vector<OTableRow*>* >(pUserObject); + ::std::vector< ::boost::shared_ptr<OTableRow> >* pRows = reinterpret_cast< ::std::vector< ::boost::shared_ptr<OTableRow> >* >(pUserObject); if(pRows) { (*rxOStm) << (sal_Int32)pRows->size(); // first stream the size - ::std::vector<OTableRow*>::const_iterator aIter = pRows->begin(); + ::std::vector< ::boost::shared_ptr<OTableRow> >::const_iterator aIter = pRows->begin(); for(;aIter != pRows->end();++aIter) (*rxOStm) << *(*aIter); return sal_True; @@ -73,7 +73,7 @@ // ----------------------------------------------------------------------------- void OTableRowExchange::AddSupportedFormats() { - if(m_vTableRow.size()) + if ( !m_vTableRow.empty() ) AddFormat(SOT_FORMATSTR_ID_SBA_TABED); } // ----------------------------------------------------------------------------- @@ -87,9 +87,6 @@ // ----------------------------------------------------------------------------- void OTableRowExchange::ObjectReleased() { - ::std::vector<OTableRow*>::iterator aIter = m_vTableRow.begin(); - for(;aIter != m_vTableRow.end();++aIter) - delete *aIter; m_vTableRow.clear(); } // ----------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
