From d48d9c0f96870780be35cf98b7915fdbb4db6735 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 24 Aug 2019 14:40:17 +0200 Subject: loplugin:returnconstval in desktop..forms Change-Id: I268e352e4e3054d1c1a8e61e52d91fd99794b359 Reviewed-on: https://gerrit.libreoffice.org/78057 Tested-by: Jenkins Reviewed-by: Noel Grandin --- desktop/source/pkgchk/unopkg/unopkg_misc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop/source/pkgchk') diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx index 6a11fdeae059..aebf71fc26d1 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx @@ -160,7 +160,7 @@ bool readArgument( namespace { struct ExecutableDir : public rtl::StaticWithInit< OUString, ExecutableDir> { - const OUString operator () () { + OUString operator () () { OUString path; if (osl_getExecutableFile( &path.pData ) != osl_Process_E_None) { throw RuntimeException("cannot locate executable directory!",nullptr); @@ -170,7 +170,7 @@ struct ExecutableDir : public rtl::StaticWithInit< }; struct ProcessWorkingDir : public rtl::StaticWithInit< OUString, ProcessWorkingDir> { - const OUString operator () () { + OUString operator () () { OUString workingDir; utl::Bootstrap::getProcessWorkingDir(workingDir); return workingDir; -- cgit v1.2.3