clang-tidy: performance-unnecessary-copy-initialization in various

Change-Id: Ib7d75d4d8207261898568402e7983e0f11da14bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176417
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2024-11-11 21:02:55 +01:00
parent 61d7bd4cd2
commit 2cb43c6b88
4 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ javaFrameworkError jfw_findAllJREs(std::vector<std::unique_ptr<JavaInfo>> *pparI
//get the list of paths to jre locations which have been
//added manually
const jfw::MergedSettings settings;
const std::vector<OUString> vecJRELocations =
const std::vector<OUString>& vecJRELocations =
settings.getJRELocations();
//Check if any plugin can detect JREs at the location
// of the paths added by jfw_addJRELocation
@@ -230,7 +230,7 @@ javaFrameworkError jfw_startVM(
vmParams = settings.getVmParametersUtf8();
// Expand user classpath (might contain bootstrap vars)
OUString sUserPath(settings.getUserClassPath());
const OUString& sUserPath(settings.getUserClassPath());
std::vector paths = jfw_convertUserPathList(sUserPath);
OUString sUserPathExpanded;
for (auto& path : paths)