QtRhi: make two plain arrays inline and constexpr

In the current case they can be inline and constexpr.

Task-number: QTBUG-100485
Change-Id: I8c200c0a756edbff914c4be8ba08fe6afbd61114
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit f003e25258e0fd546abe5857f20b626f160beb81)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Yuhang Zhao 2022-09-22 10:07:38 +08:00 committed by Qt Cherry-pick Bot
parent ed3d60cfca
commit 1906d225f9
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ ret
// Approximately 5 instruction slots used
#endif
const BYTE g_killDeviceByTimingOut[] =
inline constexpr BYTE g_killDeviceByTimingOut[] =
{
68, 88, 66, 67, 217, 62,
220, 38, 136, 51, 86, 245,

View File

@ -76,7 +76,7 @@ ret
// Approximately 6 instruction slots used
#endif
const BYTE g_testVertexShader[] =
inline constexpr BYTE g_testVertexShader[] =
{
68, 88, 66, 67, 75, 198,
18, 149, 172, 244, 247, 123,