File tree Expand file tree Collapse file tree 6 files changed +10
-12
lines changed Expand file tree Collapse file tree 6 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,10 @@ class credentials
98
98
#if defined(_MS_WINDOWS)
99
99
, m_password(password)
100
100
#endif
101
- {}
101
+ {
102
+ // Avoid unreferenced parameter warning.
103
+ password;
104
+ }
102
105
103
106
// / <summary>
104
107
// / The user name associated with the credentials.
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project DefaultTargets =" Build" ToolsVersion =" 4.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
-
4
3
<Import Project =" $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.root))\Build\version.props" />
5
4
<PropertyGroup Label =" Globals" >
6
5
<ProjectGuid >{198ED804-2655-4D92-8104-C220E3EA9452}</ProjectGuid >
7
6
<Keyword >Win32Proj</Keyword >
8
- <RootNamespace >casablanca</RootNamespace >
9
7
<DefaultLanguage >en-US</DefaultLanguage >
10
8
<MinimumVisualStudioVersion >11.0</MinimumVisualStudioVersion >
11
9
<SccProjectName >SAK</SccProjectName >
Original file line number Diff line number Diff line change 4
4
<PropertyGroup Label =" Globals" >
5
5
<ProjectGuid >{4D9ED383-673B-4E48-A6AF-6BD9F108150E}</ProjectGuid >
6
6
<Keyword >Win32Proj</Keyword >
7
- <RootNamespace >casablanca</RootNamespace >
8
7
<SccProjectName >SAK</SccProjectName >
9
8
<SccAuxPath >SAK</SccAuxPath >
10
9
<SccLocalPath >SAK</SccLocalPath >
51
50
<AdditionalOptions >-Zm160 /bigobj %(AdditionalOptions)</AdditionalOptions >
52
51
</ClCompile >
53
52
<Link >
54
- <AdditionalDependencies >Kernel32.lib;Winhttp.lib;httpapi.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies >
53
+ <AdditionalDependencies >Kernel32.lib;Winhttp.lib;httpapi.lib;crypt32.lib; bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies >
55
54
</Link >
56
55
</ItemDefinitionGroup >
57
56
<Import Project =" ../sources.proj" />
Original file line number Diff line number Diff line change 4
4
<PropertyGroup Label =" Globals" >
5
5
<ProjectGuid >{90D85FF4-F0AE-4816-923F-0EF2758F30AB}</ProjectGuid >
6
6
<Keyword >Win32Proj</Keyword >
7
- <RootNamespace >casablanca</RootNamespace >
8
7
<SccProjectName >SAK</SccProjectName >
9
8
<SccAuxPath >SAK</SccAuxPath >
10
9
<SccLocalPath >SAK</SccLocalPath >
42
41
</ItemGroup >
43
42
<ItemDefinitionGroup >
44
43
<ClCompile >
45
- <PreprocessorDefinitions >_ASYNCRT_EXPORT;AZURESTORAGESERVICES_EXPORTS; _PPLX_EXPORT;WIN32;_MBCS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions >
44
+ <PreprocessorDefinitions >_ASYNCRT_EXPORT;_PPLX_EXPORT;WIN32;_MBCS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions >
46
45
<AdditionalIncludeDirectories >$(CasablancaIncludeDir);$(CasablancaSrcDir)\pch;$(WebsocketppIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories >
47
46
<PrecompiledHeader >Use</PrecompiledHeader >
48
47
<PrecompiledHeaderFile >stdafx.h</PrecompiledHeaderFile >
49
48
<AdditionalOptions >-Zm160 /bigobj%(AdditionalOptions)</AdditionalOptions >
50
49
</ClCompile >
51
50
<Link >
52
- <AdditionalDependencies >Winhttp.lib;httpapi.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies >
51
+ <AdditionalDependencies >Winhttp.lib;httpapi.lib;bcrypt.lib;crypt32.lib; %(AdditionalDependencies)</AdditionalDependencies >
53
52
</Link >
54
53
</ItemDefinitionGroup >
55
54
<Import Project =" ../sources.proj" />
Original file line number Diff line number Diff line change 4
4
<PropertyGroup Label =" Globals" >
5
5
<ProjectGuid >{15F3B200-1AED-4B57-AF37-B21CD67914B1}</ProjectGuid >
6
6
<Keyword >Win32Proj</Keyword >
7
- <RootNamespace >casablanca</RootNamespace >
8
7
<SccProjectName >SAK</SccProjectName >
9
8
<SccAuxPath >SAK</SccAuxPath >
10
9
<SccLocalPath >SAK</SccLocalPath >
41
40
</ItemGroup >
42
41
<ItemDefinitionGroup >
43
42
<ClCompile >
44
- <PreprocessorDefinitions >CPPREST_TARGET_XP;_ASYNCRT_EXPORT;AZURESTORAGESERVICES_EXPORTS; _PPLX_EXPORT;WIN32;_MBCS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions >
43
+ <PreprocessorDefinitions >CPPREST_TARGET_XP;_ASYNCRT_EXPORT;_PPLX_EXPORT;WIN32;_MBCS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions >
45
44
<AdditionalIncludeDirectories >$(CasablancaIncludeDir);$(CasablancaSrcDir)\pch;$(WebsocketppIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories >
46
45
<PrecompiledHeader >Use</PrecompiledHeader >
47
46
<PrecompiledHeaderFile >stdafx.h</PrecompiledHeaderFile >
Original file line number Diff line number Diff line change 33
33
#include < robuffer.h>
34
34
#endif
35
35
36
- #include " cpprest\ web_utilities.h"
36
+ #include " cpprest/ web_utilities.h"
37
37
38
38
namespace web
39
39
{
@@ -60,7 +60,7 @@ winrt_encryption::winrt_encryption(const std::wstring &data)
60
60
// Create buffer containing plain text password.
61
61
Platform::ArrayReference<unsigned char > arrayref (
62
62
reinterpret_cast <unsigned char *>(const_cast <std::wstring::value_type *>(data.c_str ())),
63
- data.size () * sizeof (std::wstring::value_type));
63
+ static_cast < unsigned int >( data.size () ) * sizeof (std::wstring::value_type));
64
64
Windows::Storage::Streams::IBuffer ^plaintext = Windows::Security::Cryptography::CryptographicBuffer::CreateFromByteArray (arrayref);
65
65
m_buffer = pplx::create_task (provider->ProtectAsync (plaintext));
66
66
m_buffer.then ([plaintext](pplx::task<Windows::Storage::Streams::IBuffer ^>)
You can’t perform that action at this time.
0 commit comments