summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-29 13:34:26 +0200
committerNoel Grandin <noel@peralex.com>2015-06-02 09:45:16 +0200
commit1df41142451685d33b1821a839061c63f23e44fd (patch)
treebe78d70c5212ffb3496bf9fb6ec5f75f4c5e649c /ucb
parent44cab3c9db5aef97fde57baec205a34fc794f64b (diff)
loplugin:loopvartoosmall
Change-Id: I809e408c994222cfa95ba8f56e4db7bd96be7080
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/ftp/ftpcontentprovider.cxx4
-rw-r--r--ucb/source/ucp/ftp/ftpresultsetI.cxx4
-rw-r--r--ucb/source/ucp/ftp/ftpurl.cxx8
-rw-r--r--ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx2
4 files changed, 9 insertions, 9 deletions
diff --git a/ucb/source/ucp/ftp/ftpcontentprovider.cxx b/ucb/source/ucp/ftp/ftpcontentprovider.cxx
index a31a4b29b82a..35afa610333e 100644
--- a/ucb/source/ucp/ftp/ftpcontentprovider.cxx
+++ b/ucb/source/ucp/ftp/ftpcontentprovider.cxx
@@ -246,7 +246,7 @@ bool FTPContentProvider::forHost( const OUString& host,
OUString& account)
{
osl::MutexGuard aGuard(m_aMutex);
- for(unsigned int i = 0; i < m_ServerInfo.size(); ++i)
+ for(size_t i = 0; i < m_ServerInfo.size(); ++i)
if(host == m_ServerInfo[i].host &&
port == m_ServerInfo[i].port &&
username == m_ServerInfo[i].username )
@@ -274,7 +274,7 @@ bool FTPContentProvider::setHost( const OUString& host,
bool present(false);
osl::MutexGuard aGuard(m_aMutex);
- for(unsigned int i = 0; i < m_ServerInfo.size(); ++i)
+ for(size_t i = 0; i < m_ServerInfo.size(); ++i)
if(host == m_ServerInfo[i].host &&
port == m_ServerInfo[i].port &&
username == m_ServerInfo[i].username)
diff --git a/ucb/source/ucp/ftp/ftpresultsetI.cxx b/ucb/source/ucp/ftp/ftpresultsetI.cxx
index 1bfcddc3a3e5..89e1367b04c8 100644
--- a/ucb/source/ucp/ftp/ftpresultsetI.cxx
+++ b/ucb/source/ucp/ftp/ftpresultsetI.cxx
@@ -46,7 +46,7 @@ ResultSetI::ResultSetI(const Reference<XComponentContext>& rxContext,
const std::vector<FTPDirentry>& dirvec)
: ResultSetBase(rxContext,xProvider,nOpenMode,seqProp,seqSort)
{
- for( unsigned int i = 0; i < dirvec.size(); ++i)
+ for( size_t i = 0; i < dirvec.size(); ++i)
m_aPath.push_back(dirvec[i].m_aURL);
// m_aIdents holds the contentidentifiers
@@ -54,7 +54,7 @@ ResultSetI::ResultSetI(const Reference<XComponentContext>& rxContext,
m_aItems.resize( m_aPath.size() );
m_aIdents.resize( m_aPath.size() );
- for(unsigned n = 0; n < m_aItems.size(); ++n) {
+ for(size_t n = 0; n < m_aItems.size(); ++n) {
rtl::Reference<ucbhelper::PropertyValueSet> xRow =
new ucbhelper::PropertyValueSet(rxContext);
diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx
index 8bbcfbdfba7e..8ede7cd2b068 100644
--- a/ucb/source/ucp/ftp/ftpurl.cxx
+++ b/ucb/source/ucp/ftp/ftpurl.cxx
@@ -275,7 +275,7 @@ OUString FTPURL::ident(bool withslash,bool internal) const
else
bff.append('/');
- for(unsigned i = 0; i < m_aPathSegmentVec.size(); ++i)
+ for(size_t i = 0; i < m_aPathSegmentVec.size(); ++i)
if(i == 0)
bff.append(m_aPathSegmentVec[i]);
else
@@ -323,7 +323,7 @@ OUString FTPURL::parent(bool internal) const
OUString last;
- for(unsigned int i = 0; i < m_aPathSegmentVec.size(); ++i)
+ for(size_t i = 0; i < m_aPathSegmentVec.size(); ++i)
if(1+i == m_aPathSegmentVec.size())
last = m_aPathSegmentVec[i];
else if(i == 0)
@@ -614,7 +614,7 @@ FTPDirentry FTPURL::direntry() const
std::vector<FTPDirentry> aList = aURL.list(OpenMode::ALL);
- for(unsigned i = 0; i < aList.size(); ++i) {
+ for(size_t i = 0; i < aList.size(); ++i) {
if(aList[i].m_aName == nettitle) { // the relevant file is found
aDirentry = aList[i];
break;
@@ -778,7 +778,7 @@ void FTPURL::del() const
if(aDirentry.m_nMode & INETCOREFTP_FILEMODE_ISDIR) {
std::vector<FTPDirentry> vec = list(sal_Int16(OpenMode::ALL));
- for( unsigned int i = 0; i < vec.size(); ++i )
+ for( size_t i = 0; i < vec.size(); ++i )
try {
FTPURL url(vec[i].m_aURL,m_pFCP);
url.del();
diff --git a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
index 8f718a015b6c..6df724cd341f 100644
--- a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
@@ -398,7 +398,7 @@ bool DataSupplier::getData()
aPath = NeonUri::unescape( aPath );
bool bFoundParent = false;
- for ( sal_uInt32 n = 0; n < resources.size(); ++n )
+ for ( size_t n = 0; n < resources.size(); ++n )
{
const DAVResource & rRes = resources[ n ];