summaryrefslogtreecommitdiff
path: root/print/XPSDrvSmpl/src/common/ptquerybld.cpp
diff options
context:
space:
mode:
authorMike Fenelon <[email protected]>2017-08-18 15:03:15 -0700
committerMike Fenelon <[email protected]>2017-08-18 15:03:15 -0700
commit8a305a42a31c99ffa586c4118692a5bf5c9d22ef (patch)
tree952a5aee24d68f74dd6890acdd61e60631c18a3c /print/XPSDrvSmpl/src/common/ptquerybld.cpp
parentf0fbfbdba856bb905a6466d47bd760cf8622ec0f (diff)
Update all currnet Print Samples to support VS2017 and Windows 10
Diffstat (limited to 'print/XPSDrvSmpl/src/common/ptquerybld.cpp')
-rw-r--r--print/XPSDrvSmpl/src/common/ptquerybld.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/print/XPSDrvSmpl/src/common/ptquerybld.cpp b/print/XPSDrvSmpl/src/common/ptquerybld.cpp
index 885af0b2..c2113932 100644
--- a/print/XPSDrvSmpl/src/common/ptquerybld.cpp
+++ b/print/XPSDrvSmpl/src/common/ptquerybld.cpp
@@ -236,7 +236,7 @@ CPTQueryBuilder::AddFeature(
if (SUCCEEDED(hr))
{
CStringXDW cstrFeatureQuery;
- cstrFeatureQuery.Format(szPTQFeature, m_bstrFrameworkNS, bstrKeyword);
+ cstrFeatureQuery.Format(szPTQFeature, static_cast<LPCWSTR>(m_bstrFrameworkNS), static_cast<LPCWSTR>(bstrKeyword));
hr = m_bstrQuery.Append(cstrFeatureQuery);
}
@@ -305,7 +305,7 @@ CPTQueryBuilder::AddProperty(
if (SUCCEEDED(hr))
{
CStringXDW cstrPropertyQuery;
- cstrPropertyQuery.Format(szPTQProperty, m_bstrFrameworkNS, bstrKeyword);
+ cstrPropertyQuery.Format(szPTQProperty, static_cast<LPCWSTR>(m_bstrFrameworkNS), static_cast<LPCWSTR>(bstrKeyword));
hr = m_bstrQuery.Append(cstrPropertyQuery);
}
@@ -369,7 +369,7 @@ CPTQueryBuilder::AddScoredProperty(
if (SUCCEEDED(hr))
{
CStringXDW cstrScoredPropertyQuery;
- cstrScoredPropertyQuery.Format(szPTQScoredProperty, m_bstrFrameworkNS, bstrKeyword);
+ cstrScoredPropertyQuery.Format(szPTQScoredProperty, static_cast<LPCWSTR>(m_bstrFrameworkNS), static_cast<LPCWSTR>(bstrKeyword));
hr = m_bstrQuery.Append(cstrScoredPropertyQuery);
}
@@ -437,7 +437,7 @@ CPTQueryBuilder::AddParamRef(
if (SUCCEEDED(hr))
{
CStringXDW cstrParamRefQuery;
- cstrParamRefQuery.Format(szPTQParamRef, m_bstrFrameworkNS, bstrKeyword);
+ cstrParamRefQuery.Format(szPTQParamRef, static_cast<LPCWSTR>(m_bstrFrameworkNS), static_cast<LPCWSTR>(bstrKeyword));
hr = m_bstrQuery.Append(cstrParamRefQuery);
}
@@ -490,13 +490,13 @@ CPTQueryBuilder::AddOption(
{
CStringXDW cstrQueryRoot(m_bstrQuery);
CStringXDW cstrOptionQuery;
- cstrOptionQuery.Format(szPTQOptionSH, m_bstrFrameworkNS);
+ cstrOptionQuery.Format(szPTQOptionSH, static_cast<LPCWSTR>(m_bstrFrameworkNS));
if (SUCCEEDED(hr = m_bstrQuery.Append(cstrOptionQuery)) &&
SUCCEEDED(hr = m_bstrQuery.Append(szPTQOrNodes)) &&
SUCCEEDED(hr = m_bstrQuery.Append(cstrQueryRoot)))
{
- cstrOptionQuery.Format(szPTQOptionLH, m_bstrFrameworkNS, bstrKeywordNS, m_bstrFrameworkNS);
+ cstrOptionQuery.Format(szPTQOptionLH, static_cast<LPCWSTR>(m_bstrFrameworkNS), bstrKeywordNS, static_cast<LPCWSTR>(m_bstrFrameworkNS));
hr = m_bstrQuery.Append(cstrOptionQuery);
}
}