diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 15:54:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 18:37:47 +0200 |
commit | 50a6041bfac60ab03ec896bd638504524853300d (patch) | |
tree | 0178900643552698db356a0e3c70c94239ad5577 /vcl/unx/generic/desktopdetect | |
parent | 102a94c9de3c8c4d1326022dd14a300d6b72e222 (diff) |
loplugin:constvars in vcl
Change-Id: Ic454a4d9520992eaecef4b64ec73d49e52ffcc2c
Reviewed-on: https://gerrit.libreoffice.org/77828
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/desktopdetect')
-rw-r--r-- | vcl/unx/generic/desktopdetect/desktopdetector.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/desktopdetect/desktopdetector.cxx b/vcl/unx/generic/desktopdetect/desktopdetector.cxx index b2aea898e45c..1ae3bc91595f 100644 --- a/vcl/unx/generic/desktopdetect/desktopdetector.cxx +++ b/vcl/unx/generic/desktopdetect/desktopdetector.cxx @@ -165,7 +165,7 @@ DESKTOP_DETECTOR_PUBLIC DesktopType get_desktop_environment() //it may be separated by colon ( e.g. unity:unity7:ubuntu ) std::vector<OUString> aSplitCurrentDesktop = comphelper::string::split( OStringToOUString( aCurrentDesktop, RTL_TEXTENCODING_UTF8), ':'); - for (auto& rCurrentDesktopStr : aSplitCurrentDesktop) + for (const auto& rCurrentDesktopStr : aSplitCurrentDesktop) { if ( rCurrentDesktopStr.equalsIgnoreAsciiCase( "unity" ) ) return DESKTOP_UNITY; |