[Libreoffice-commits] core.git: sal/osl vcl/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 30 10:14:11 UTC 2021
sal/osl/w32/time.cxx | 2 +-
vcl/source/helper/driverblocklist.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cbe233766dc4cb028446aa599609b1a7d594785e
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Sep 30 09:56:16 2021 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Sep 30 12:13:35 2021 +0200
loplugin:unusedcapturedefault (clang-cl)
Change-Id: Ib7b3bfb7a3162e032cf6c9bf7f19576434592a00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122849
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/sal/osl/w32/time.cxx b/sal/osl/w32/time.cxx
index 688fef211519..3f11746fedad 100644
--- a/sal/osl/w32/time.cxx
+++ b/sal/osl/w32/time.cxx
@@ -35,7 +35,7 @@ sal_Bool SAL_CALL osl_getSystemTime(TimeValue* pTimeVal)
OSL_ASSERT(pTimeVal != nullptr);
- static GetSystemTimePreciseAsFileTime_PROC pGetSystemTimePreciseAsFileTime = [&]()
+ static GetSystemTimePreciseAsFileTime_PROC pGetSystemTimePreciseAsFileTime = []()
{
HMODULE hModule = GetModuleHandleW( L"Kernel32.dll" );
return reinterpret_cast<GetSystemTimePreciseAsFileTime_PROC>(
diff --git a/vcl/source/helper/driverblocklist.cxx b/vcl/source/helper/driverblocklist.cxx
index 7fb20da6ab94..855376dc1fb5 100644
--- a/vcl/source/helper/driverblocklist.cxx
+++ b/vcl/source/helper/driverblocklist.cxx
@@ -723,7 +723,7 @@ bool IsDeviceBlocked(const OUString& blocklistURL, VersionType versionType,
#ifdef _WIN32
int32_t GetWindowsVersion()
{
- static int32_t winVersion = [&]() {
+ static int32_t winVersion = []() {
// GetVersion(Ex) and VersionHelpers (based on VerifyVersionInfo) API are
// subject to manifest-based behavior since Windows 8.1, so give wrong results.
// Another approach would be to use NetWkstaGetInfo, but that has some small
More information about the Libreoffice-commits
mailing list