diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-19 15:11:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-19 19:28:11 +0200 |
commit | 8efd46ed867b66f9fbc31dbaa1d46bc91ea29ae2 (patch) | |
tree | eafc8ade307c5fe797fdddddfa6d9dc39c935b8a /desktop/source/lib/init.cxx | |
parent | 9c10e29287740f473fa4f33ac6188b8c8543bfbb (diff) |
loplugin:constvars in cppuhelper..desktop
Change-Id: Iaf42114ab98875c4bc1545684f1893540b998ef2
Reviewed-on: https://gerrit.libreoffice.org/77723
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/lib/init.cxx')
-rw-r--r-- | desktop/source/lib/init.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index c04f5c461dea..4b059576da9c 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3698,13 +3698,13 @@ static int doc_getClipboard(LibreOfficeKitDocument* pThis, std::vector<OString> aMimeTypes; if (!pMimeTypes) // everything { - uno::Sequence< css::datatransfer::DataFlavor > flavors = xTransferable->getTransferDataFlavors(); + const uno::Sequence< css::datatransfer::DataFlavor > flavors = xTransferable->getTransferDataFlavors(); if (!flavors.getLength()) { SetLastExceptionMsg("Flavourless selection"); return 0; } - for (auto &it : flavors) + for (const auto &it : flavors) aMimeTypes.push_back(OUStringToOString(it.MimeType, RTL_TEXTENCODING_UTF8)); } else @@ -5256,10 +5256,10 @@ public: } virtual void Invoke() override { - css::uno::Sequence<OUString> aEvents = + const css::uno::Sequence<OUString> aEvents = comphelper::ProfileRecording::getRecordingAndClear(); OStringBuffer aOutput; - for (auto &s : aEvents) + for (const auto &s : aEvents) { aOutput.append(OUStringToOString(s, RTL_TEXTENCODING_UTF8)); aOutput.append("\n"); @@ -5290,7 +5290,7 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char const char *pOptions = getenv("SAL_LOK_OPTIONS"); if (pOptions) aOpts = comphelper::string::split(OUString(pOptions, strlen(pOptions), RTL_TEXTENCODING_UTF8), ':'); - for (auto &it : aOpts) + for (const auto &it : aOpts) { if (it == "unipoll") bUnipoll = true; |