From 9eaef83b070c9221b3f0ce0cea4ab68ed1e699b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0vagerka?= Date: Wed, 10 Aug 2016 10:36:59 +0200 Subject: [PATCH] Fix compilation error on MSVC2015. CREDENTIALW::Comment is LPTSTR (a non-const wchar_t*), whereas wide char literal is const wchat_t*, causing a compilation error. --- keychain_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keychain_win.cpp b/keychain_win.cpp index 3d79ff2..4edd92e 100644 --- a/keychain_win.cpp +++ b/keychain_win.cpp @@ -56,7 +56,7 @@ void WritePasswordJobPrivate::scheduledStart() { LPWSTR name = (LPWSTR)key.utf16(); memset(&cred, 0, sizeof(cred)); - cred.Comment = L"QtKeychain"; + cred.Comment = const_cast(L"QtKeychain"); cred.Type = CRED_TYPE_GENERIC; cred.TargetName = name; cred.CredentialBlobSize = data.size();