summaryrefslogtreecommitdiff
path: root/print/XPSDrvSmpl/src/common/ptquerybld.cpp
diff options
context:
space:
mode:
authorLuke <[email protected]>2017-11-28 00:22:11 -0800
committerGitHub <[email protected]>2017-11-28 00:22:11 -0800
commit79bbbca2f6e37d94fbbbd60d12c5c1e7dde650da (patch)
tree793ff943b8b641f95d05401156badd42da4a0f12 /print/XPSDrvSmpl/src/common/ptquerybld.cpp
parented1df9a8b80b154b71b79635e40af75f4f19001c (diff)
parent2817004092cee784d4aaf36c045fdb5b0bc09f7e (diff)
Merge pull request #1 from Microsoft/master
Updating Local
Diffstat (limited to 'print/XPSDrvSmpl/src/common/ptquerybld.cpp')
-rw-r--r--print/XPSDrvSmpl/src/common/ptquerybld.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/print/XPSDrvSmpl/src/common/ptquerybld.cpp b/print/XPSDrvSmpl/src/common/ptquerybld.cpp
index 885af0b2..cc7faa8a 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,14 @@ 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),
+ static_cast<LPCWSTR>(bstrKeywordNS), static_cast<LPCWSTR>(m_bstrFrameworkNS));
hr = m_bstrQuery.Append(cstrOptionQuery);
}
}