diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 15:54:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 18:39:11 +0200 |
commit | 1d4eb1be35cc393f98496883c2cb4ee89f4bcf0c (patch) | |
tree | 8b918663b9c37780d1fa42b8b1f35f363c7aa8d5 /ucb | |
parent | 50a6041bfac60ab03ec896bd638504524853300d (diff) |
loplugin:constvars in test..unotools
Change-Id: I087dc53ca5c18893974bbd9d959de56d5a4cdfa0
Reviewed-on: https://gerrit.libreoffice.org/77827
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/ftp/ftpcontentprovider.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/ftp/ftpurl.cxx | 2 |
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; |