summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:30:30 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:30:30 +0000
commit01c567750fb7bf894dda9464544c4489775a141a (patch)
tree87bc483fa3d199fb09dc22a05aaf1e7dc12c805e /ucb
parent325bcfc0fb74fdb4df79fd62cad7f50eb71e3666 (diff)
INTEGRATION: CWS warnings01 (1.11.10); FILE MERGED
2005/11/10 17:15:21 pl 1.11.10.1: #i55991# removed warnings
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/package/pkgdatasupplier.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/ucb/source/ucp/package/pkgdatasupplier.cxx b/ucb/source/ucp/package/pkgdatasupplier.cxx
index 8d528602fe80..18075a2255e3 100644
--- a/ucb/source/ucp/package/pkgdatasupplier.cxx
+++ b/ucb/source/ucp/package/pkgdatasupplier.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: pkgdatasupplier.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 15:55:55 $
+ * last change: $Author: hr $ $Date: 2006-06-20 05:30:30 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -167,11 +167,11 @@ DataSupplier::~DataSupplier()
//=========================================================================
// virtual
-rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
+rtl::OUString DataSupplier::queryContentIdentifierString( sal_Int32 nIndex )
{
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
- if ( nIndex < m_pImpl->m_aResults.size() )
+ if ( nIndex < sal::static_int_cast<sal_Int32>(m_pImpl->m_aResults.size()) )
{
rtl::OUString aId = m_pImpl->m_aResults[ nIndex ]->aURL;
if ( aId.getLength() )
@@ -192,11 +192,11 @@ rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
//=========================================================================
// virtual
uno::Reference< star::ucb::XContentIdentifier >
-DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
+DataSupplier::queryContentIdentifier( sal_Int32 nIndex )
{
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
- if ( nIndex < m_pImpl->m_aResults.size() )
+ if ( nIndex < sal::static_int_cast<sal_Int32>(m_pImpl->m_aResults.size()) )
{
uno::Reference< star::ucb::XContentIdentifier > xId
= m_pImpl->m_aResults[ nIndex ]->xId;
@@ -221,11 +221,11 @@ DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
//=========================================================================
// virtual
uno::Reference< star::ucb::XContent > DataSupplier::queryContent(
- sal_uInt32 nIndex )
+ sal_Int32 nIndex )
{
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
- if ( nIndex < m_pImpl->m_aResults.size() )
+ if ( nIndex < sal::static_int_cast<sal_Int32>(m_pImpl->m_aResults.size()) )
{
uno::Reference< star::ucb::XContent > xContent
= m_pImpl->m_aResults[ nIndex ]->xContent;
@@ -257,11 +257,11 @@ uno::Reference< star::ucb::XContent > DataSupplier::queryContent(
//=========================================================================
// virtual
-sal_Bool DataSupplier::getResult( sal_uInt32 nIndex )
+sal_Bool DataSupplier::getResult( sal_Int32 nIndex )
{
osl::ClearableGuard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
- if ( m_pImpl->m_aResults.size() > nIndex )
+ if ( sal::static_int_cast<sal_Int32>(m_pImpl->m_aResults.size()) > nIndex )
{
// Result already present.
return sal_True;
@@ -276,7 +276,7 @@ sal_Bool DataSupplier::getResult( sal_uInt32 nIndex )
sal_uInt32 nOldCount = m_pImpl->m_aResults.size();
sal_Bool bFound = sal_False;
- sal_uInt32 nPos = nOldCount;
+ sal_Int32 nPos = nOldCount;
while ( m_pImpl->m_xFolderEnum->hasMoreElements() )
{
@@ -349,7 +349,7 @@ sal_Bool DataSupplier::getResult( sal_uInt32 nIndex )
//=========================================================================
// virtual
-sal_uInt32 DataSupplier::totalCount()
+sal_Int32 DataSupplier::totalCount()
{
osl::ClearableGuard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
@@ -418,7 +418,7 @@ sal_uInt32 DataSupplier::totalCount()
//=========================================================================
// virtual
-sal_uInt32 DataSupplier::currentCount()
+sal_Int32 DataSupplier::currentCount()
{
return m_pImpl->m_aResults.size();
}
@@ -433,11 +433,11 @@ sal_Bool DataSupplier::isCountFinal()
//=========================================================================
// virtual
uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues(
- sal_uInt32 nIndex )
+ sal_Int32 nIndex )
{
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
- if ( nIndex < m_pImpl->m_aResults.size() )
+ if ( nIndex < sal::static_int_cast<sal_Int32>(m_pImpl->m_aResults.size()) )
{
uno::Reference< sdbc::XRow > xRow = m_pImpl->m_aResults[ nIndex ]->xRow;
if ( xRow.is() )
@@ -464,11 +464,11 @@ uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues(
//=========================================================================
// virtual
-void DataSupplier::releasePropertyValues( sal_uInt32 nIndex )
+void DataSupplier::releasePropertyValues( sal_Int32 nIndex )
{
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
- if ( nIndex < m_pImpl->m_aResults.size() )
+ if ( nIndex < sal::static_int_cast<sal_Int32>(m_pImpl->m_aResults.size()) )
m_pImpl->m_aResults[ nIndex ]->xRow = uno::Reference< sdbc::XRow >();
}