summaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2020-06-02 13:57:39 +0200
committerOliver Wolff <oliver.wolff@qt.io>2020-06-04 15:51:51 +0200
commit9cefaca1ea908df39edee03ef888a40690d355af (patch)
tree4b9b70afc4215c45130a96c01e4d056b0ae362d1 /examples/quick
parentd0c177f0ee42d7c9454f0093635a5f68362f2283 (diff)
Remove winrt
Task-number: QTBUG-84434 Change-Id: If8f57f00726868a3540c877d07fca761618e4f08 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/rendercontrol/rendercontrol_d3d11/engine.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/quick/rendercontrol/rendercontrol_d3d11/engine.cpp b/examples/quick/rendercontrol/rendercontrol_d3d11/engine.cpp
index be1f6d842c..99f65f6200 100644
--- a/examples/quick/rendercontrol/rendercontrol_d3d11/engine.cpp
+++ b/examples/quick/rendercontrol/rendercontrol_d3d11/engine.cpp
@@ -63,11 +63,7 @@ Engine::~Engine()
QString comErrorMessage(HRESULT hr)
{
-#ifndef Q_OS_WINRT
const _com_error comError(hr);
-#else
- const _com_error comError(hr, nullptr);
-#endif
QString result = QLatin1String("Error 0x") + QString::number(ulong(hr), 16);
if (const wchar_t *msg = comError.ErrorMessage())
result += QLatin1String(": ") + QString::fromWCharArray(msg);