summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sal/osl/w32/time.cxx2
-rw-r--r--vcl/source/helper/driverblocklist.cxx2
2 files changed, 2 insertions, 2 deletions
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