QtRhi: make two plain arrays inline and constexpr

In the current case they can be inline and constexpr.

Pick-to: 6.4
Task-number: QTBUG-100485
Change-Id: I8c200c0a756edbff914c4be8ba08fe6afbd61114
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
Yuhang Zhao 2022-09-22 10:07:38 +08:00
parent 2093d65a80
commit f003e25258
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,