diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2018-05-22 16:19:34 +0200 |
---|---|---|
committer | Jesus Fernandez <Jesus.Fernandez@qt.io> | 2018-05-22 14:53:21 +0000 |
commit | 110859475c80df0db73afff01360152f35b962e4 (patch) | |
tree | 644f1273e18efcaa2d2fd575d60751c4d95efa6b | |
parent | d89846b8ad6cc0b662820ba8666fddd9a08be4ff (diff) |
Convert port string to ushort
Removes clazy warning.
Change-Id: Ib019497a8b3f8812ddf51ae59373a7a9501c9b21
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
-rw-r--r-- | src/plugins/platforms/webgl/qwebglmain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/webgl/qwebglmain.cpp b/src/plugins/platforms/webgl/qwebglmain.cpp index 9f34cb3..b42ee18 100644 --- a/src/plugins/platforms/webgl/qwebglmain.cpp +++ b/src/plugins/platforms/webgl/qwebglmain.cpp @@ -56,7 +56,7 @@ QPlatformIntegration* QWebGLIntegrationPlugin::create(const QString& system, return nullptr; } bool ok; - port = parts.last().toUInt(&ok); + port = parts.last().toUShort(&ok); if (!ok) { qCCritical(lcWebGL, "QWebGLIntegrationPlugin::create: Invalid port number"); return nullptr; |