diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-10-10 13:02:43 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-10-10 13:02:43 +0000 |
commit | a3458db24dc4688fcca14242917ec3bd62a6adcb (patch) | |
tree | b902384544d6fb83961786eae1fdc3554475ce1e /connectivity/source/drivers | |
parent | 7f0a1dea69541e73a8a38da7906a65aad63c8902 (diff) |
CWS-TOOLING: integrate CWS cmcfixes49
Diffstat (limited to 'connectivity/source/drivers')
5 files changed, 13 insertions, 14 deletions
diff --git a/connectivity/source/drivers/dbase/DIndexIter.cxx b/connectivity/source/drivers/dbase/DIndexIter.cxx index 67b01cfd3c1c..e350a596b38e 100644 --- a/connectivity/source/drivers/dbase/DIndexIter.cxx +++ b/connectivity/source/drivers/dbase/DIndexIter.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DIndexIter.cxx,v $ - * $Revision: 1.9 $ + * $Revision: 1.9.66.1 $ * * This file is part of OpenOffice.org. * @@ -175,13 +175,13 @@ ULONG OIndexIterator::GetCompare(BOOL bFirst) switch (ePredicateType) { case SQLFilterOperator::NOT_EQUAL: - while ( ( ( pKey = GetNextKey() ) != NULL ) && !m_pOperator->operate(pKey,m_pOperand)); + while ( ( ( pKey = GetNextKey() ) != NULL ) && !m_pOperator->operate(pKey,m_pOperand)) ; break; case SQLFilterOperator::LESS: - while ( ( ( pKey = GetNextKey() ) != NULL ) && pKey->getValue().isNull()); + while ( ( ( pKey = GetNextKey() ) != NULL ) && pKey->getValue().isNull()) ; break; case SQLFilterOperator::LESS_EQUAL: - while ( ( pKey = GetNextKey() ) != NULL ); + while ( ( pKey = GetNextKey() ) != NULL ) ; break; case SQLFilterOperator::GREATER_EQUAL: case SQLFilterOperator::EQUAL: @@ -190,7 +190,7 @@ ULONG OIndexIterator::GetCompare(BOOL bFirst) case SQLFilterOperator::GREATER: pKey = GetFirstKey(m_aRoot,*m_pOperand); if ( !pKey ) - while ( ( ( pKey = GetNextKey() ) != NULL ) && !m_pOperator->operate(pKey,m_pOperand)); + while ( ( ( pKey = GetNextKey() ) != NULL ) && !m_pOperator->operate(pKey,m_pOperand)) ; } } else diff --git a/connectivity/source/drivers/dbase/dindexnode.cxx b/connectivity/source/drivers/dbase/dindexnode.cxx index 179533157756..7f751ac0103e 100644 --- a/connectivity/source/drivers/dbase/dindexnode.cxx +++ b/connectivity/source/drivers/dbase/dindexnode.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dindexnode.cxx,v $ - * $Revision: 1.21 $ + * $Revision: 1.21.66.1 $ * * This file is part of OpenOffice.org. * @@ -214,7 +214,7 @@ BOOL ONDXPage::Insert(ONDXNode& rNode, sal_uInt32 nRowsLeft) else // Position unbekannt { USHORT nPos = NODE_NOTFOUND; - while (++nPos < nCount && rNode.GetKey() > ((*this)[nPos]).GetKey()); + while (++nPos < nCount && rNode.GetKey() > ((*this)[nPos]).GetKey()) ; --nCount; // (sonst bekomme ich u.U. Assertions und GPFs - 60593) bResult = Insert(nPos, rNode); diff --git a/connectivity/source/drivers/evoab/LDriver.cxx b/connectivity/source/drivers/evoab/LDriver.cxx index bf57f4df9e4a..379dfba4b21e 100644 --- a/connectivity/source/drivers/evoab/LDriver.cxx +++ b/connectivity/source/drivers/evoab/LDriver.cxx @@ -230,7 +230,6 @@ sal_Bool SAL_CALL OEvoabDriver::acceptsURL( const ::rtl::OUString& url ) OSL_ASSERT( hStdout ); sal_Char pBuffer[256]; sal_uInt64 nBytesRead; - OSL_ASSERT( pBuffer ); oslFileError nFileErr = osl_File_E_None; nFileErr = osl_readFile( hStdout, pBuffer, 256, &nBytesRead); if ( nFileErr != osl_File_E_None ) diff --git a/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx b/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx index a638ce6ebdbd..158a9e146b29 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: MNSMozabProxy.cxx,v $ - * $Revision: 1.10 $ + * $Revision: 1.10.66.1 $ * * This file is part of OpenOffice.org. * @@ -319,7 +319,7 @@ MNSMozabProxy::testLDAPConnection( ) { const MLDAPMessageListener* pListener( static_cast< const MLDAPMessageListener* >( m_Args->arg5 ) ); if ( pListener->initialized() ) - rv = pListener->goodConnection() ? 0 : PR_NOT_CONNECTED_ERROR; + rv = pListener->goodConnection() ? 0 : (nsresult)PR_NOT_CONNECTED_ERROR; else rv = (nsresult)PR_CONNECT_TIMEOUT_ERROR; } diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQuery.hxx b/connectivity/source/drivers/mozab/mozillasrc/MQuery.hxx index 46dd26d197dc..75dc59732403 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MQuery.hxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MQuery.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: MQuery.hxx,v $ - * $Revision: 1.16 $ + * $Revision: 1.16.66.1 $ * * This file is part of OpenOffice.org. * @@ -111,9 +111,9 @@ namespace connectivity { } - const ::rtl::OUString& getName() { return m_aName; } - const MQueryOp::cond_type getCond() { return m_aBooleanCondition; } - const ::rtl::OUString& getValue() { return m_aValue; } + const ::rtl::OUString& getName() const { return m_aName; } + MQueryOp::cond_type getCond() const { return m_aBooleanCondition; } + const ::rtl::OUString& getValue() const { return m_aValue; } }; class MQuery; |