[Pkg-owncloud-commits] [qtkeychain] 23/63: Fix compilation error on MSVC2015.
Sandro Knauß
hefee at debian.org
Sat Jun 10 14:39:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
hefee pushed a commit to branch master
in repository qtkeychain.
commit 9eaef83b070c9221b3f0ce0cea4ab68ed1e699b9
Author: Michal Švagerka <michal.svagerka at gmail.com>
Date: Wed Aug 10 10:36:59 2016 +0200
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<wchar_t*>(L"QtKeychain");
cred.Type = CRED_TYPE_GENERIC;
cred.TargetName = name;
cred.CredentialBlobSize = data.size();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/qtkeychain.git
More information about the Pkg-owncloud-commits
mailing list