summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/ftp/ftpcontentprovider.cxx2
-rw-r--r--ucb/source/ucp/ftp/ftpurl.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/ftp/ftpcontentprovider.cxx b/ucb/source/ucp/ftp/ftpcontentprovider.cxx
index 99cb557db1de..c132ef33c888 100644
--- a/ucb/source/ucp/ftp/ftpcontentprovider.cxx
+++ b/ucb/source/ucp/ftp/ftpcontentprovider.cxx
@@ -227,7 +227,7 @@ void FTPContentProvider::forHost( const OUString& host,
OUString& account)
{
osl::MutexGuard aGuard(m_aMutex);
- for(ServerInfo & i : m_ServerInfo)
+ for(const ServerInfo & i : m_ServerInfo)
if(host == i.host &&
port == i.port &&
username == i.username )
diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx
index 3d04a716a82c..2c5a8d5dc9ef 100644
--- a/ucb/source/ucp/ftp/ftpurl.cxx
+++ b/ucb/source/ucp/ftp/ftpurl.cxx
@@ -605,7 +605,7 @@ FTPDirentry FTPURL::direntry() const
std::vector<FTPDirentry> aList = aURL.list(OpenMode::ALL);
- for(FTPDirentry & d : aList) {
+ for(const FTPDirentry & d : aList) {
if(d.m_aName == nettitle) { // the relevant file is found
aDirentry = d;
break;