diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-03-20 11:32:08 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-20 13:58:31 +0100 |
commit | 1898bf89f49522d71c3c9bf49c9bb15c6c8ca46a (patch) | |
tree | 89d8ce386424d856f93c153c8671c3a5b6136772 | |
parent | 7e4e16437b3cf28f4074a4279fe1203cab73d6e5 (diff) | |
download | qttools-1898bf89f49522d71c3c9bf49c9bb15c6c8ca46a.tar.gz |
winrtrunner: use HString class where appropriate
Change-Id: I9b56594b65a545ea98e033ec57788f51cfd6695d
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
-rw-r--r-- | src/winrtrunner/appxengine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/winrtrunner/appxengine.cpp b/src/winrtrunner/appxengine.cpp index 81512845a..7b83a1460 100644 --- a/src/winrtrunner/appxengine.cpp +++ b/src/winrtrunner/appxengine.cpp @@ -615,10 +615,10 @@ bool AppxEngine::install(bool removeFirst) } if (FAILED(errorCode)) { - HSTRING errorText; - if (SUCCEEDED(results->get_ErrorText(&errorText))) { + HString errorText; + if (SUCCEEDED(results->get_ErrorText(errorText.GetAddressOf()))) { qCWarning(lcWinRtRunner) << "Unable to register package:" - << QString::fromWCharArray(WindowsGetStringRawBuffer(errorText, 0)); + << QString::fromWCharArray(errorText.GetRawBuffer(NULL)); } if (HRESULT_CODE(errorCode) == ERROR_INSTALL_POLICY_FAILURE) { // The user's license has expired. Give them the opportunity to renew it. |