diff options
author | Yuhang Zhao <2546789017@qq.com> | 2022-10-26 13:34:35 +0800 |
---|---|---|
committer | Yuhang Zhao <2546789017@qq.com> | 2022-11-16 19:44:43 +0800 |
commit | bd7fa4a53791ead147393d3a4a797d2e14ee3343 (patch) | |
tree | ef50df5bf2a48546bfe0ac3d884f244c458d0d9c /mkspecs | |
parent | e2f895db2eb80f2735e89763a047571410565369 (diff) |
Windows: centralize how we handle error messages
Currently QtBase contains multiple implementation of how to get the Win32
and COM error messages, and they are almost exactly the same, what's worse,
Qt already has a private QSystemError class to do such things, so we are
re-inventing the wheel in many places. This patch removes all other custom
error message implementations besides the QSystemError one. And since there
are a lot of places need the COM error message, move the implementation to
QSystemError so that it can handle both Win32 error and COM error.
Since I'm touching these lines anyway, break them into short lines if they
are above the length limit.
Change-Id: I1067c874011800303f0f114b5cb8830ac6810fc0
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'mkspecs')
0 files changed, 0 insertions, 0 deletions