diff options
author | David Tardon <dtardon@redhat.com> | 2012-07-20 09:36:57 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-07-20 09:36:57 +0200 |
commit | 286799f43818b9dc5482720c0cd06eeede568758 (patch) | |
tree | ce40c63fb3898b0c7c37f6dda127648279c45ac0 /extensions | |
parent | b37bcdded66ae82c5677fe60d8347b87281f3fa2 (diff) |
WaE: deprecated conversion from string constant to 'PWCHAR'
Change-Id: I3500eb6a7ab1c98856a8da13e76135d1073dd6fd
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/config/ldap/ldapaccess.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/config/ldap/ldapaccess.cxx b/extensions/source/config/ldap/ldapaccess.cxx index 6be6ba13c2e2..9675d5f94bda 100644 --- a/extensions/source/config/ldap/ldapaccess.cxx +++ b/extensions/source/config/ldap/ldapaccess.cxx @@ -205,7 +205,7 @@ void LdapConnection::initConnection() LdapErrCode retCode = ldap_search_sW(mConnection, (PWCHAR) aUserDn.getStr(), LDAP_SCOPE_BASE, - L"(objectclass=*)", + const_cast<PWCHAR>( L"(objectclass=*)" ), 0, 0, // Attributes + values &result.msg) ; @@ -270,7 +270,7 @@ void LdapConnection::initConnection() LdapMessageHolder result; #ifdef WNT - PWCHAR attributes [2] = { L"1.1", NULL }; + PWCHAR attributes [2] = { const_cast<PWCHAR>( L"1.1" ), NULL }; LdapErrCode retCode = ldap_search_sW(mConnection, (PWCHAR) mLdapDefinition.mBaseDN.getStr(), LDAP_SCOPE_SUBTREE, |