Tag: cws_src680_qiq User: fs Date: 06/05/19 02:46:19 Modified: /dba/connectivity/inc/connectivity/ dbexception.hxx
Log: some more constness for the SQLExceptionIteratorHelper File Changes: Directory: /dba/connectivity/inc/connectivity/ ============================================== File [changed]: dbexception.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/inc/connectivity/dbexception.hxx?r1=1.14.56.5&r2=1.14.56.6 Delta lines: +9 -14 -------------------- --- dbexception.hxx 19 May 2006 08:40:12 -0000 1.14.56.5 +++ dbexception.hxx 19 May 2006 09:46:16 -0000 1.14.56.6 @@ -4,9 +4,9 @@ * * $RCSfile: dbexception.hxx,v $ * - * $Revision: 1.14.56.5 $ + * $Revision: 1.14.56.6 $ * - * last change: $Author: fs $ $Date: 2006/05/19 08:40:12 $ + * last change: $Author: fs $ $Date: 2006/05/19 09:46:16 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -180,7 +180,7 @@ class SQLExceptionIteratorHelper { protected: - ::com::sun::star::sdbc::SQLException* m_pCurrent; + const ::com::sun::star::sdbc::SQLException* m_pCurrent; SQLExceptionInfo::TYPE m_eCurrentType; public: @@ -190,7 +190,7 @@ the start of the exception chain to iterate. Must live as long as the iterator instances lives, at least. */ - SQLExceptionIteratorHelper( ::com::sun::star::sdbc::SQLException& _rChainStart ); + SQLExceptionIteratorHelper( const ::com::sun::star::sdbc::SQLException& _rChainStart ); /** constructs an iterator instance from an SQLWarning @@ -198,7 +198,7 @@ the start of the exception chain to iterate. Must live as long as the iterator instances lives, at least. */ - SQLExceptionIteratorHelper( ::com::sun::star::sdbc::SQLWarning& _rChainStart ); + SQLExceptionIteratorHelper( const ::com::sun::star::sdbc::SQLWarning& _rChainStart ); /** constructs an iterator instance from an SQLContext @@ -206,7 +206,7 @@ the start of the exception chain to iterate. Must live as long as the iterator instances lives, at least. */ - SQLExceptionIteratorHelper( ::com::sun::star::sdb::SQLContext& _rChainStart ); + SQLExceptionIteratorHelper( const ::com::sun::star::sdb::SQLContext& _rChainStart ); /** constructs an iterator instance from an SQLExceptionInfo @@ -214,7 +214,7 @@ the start of the exception chain to iterate. Must live as long as the iterator instances lives, at least. */ - SQLExceptionIteratorHelper( SQLExceptionInfo& _rErrorInfo ); + SQLExceptionIteratorHelper( const SQLExceptionInfo& _rErrorInfo ); /** determines whether there are more elements in the exception chain */ @@ -231,11 +231,6 @@ /** retrieves the current element in the chain, or <NULL/> if the chain has been completely traveled. - */ - ::com::sun::star::sdbc::SQLException* current() { return m_pCurrent; } - - /** retrieves the current element in the chain, or <NULL/> if the chain has been completely - traveled. In opposite to the second <member>current</member>, this version allows typed access to the respective SQLException. @@ -246,7 +241,7 @@ @return the current element in the chain, as <b>before</em> the chain move. */ - ::com::sun::star::sdbc::SQLException* next(); + const ::com::sun::star::sdbc::SQLException* next(); /** proceeds to the next element in the chain --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
