windeployqt: a little readability improvement

Break the long sentence to improve the logic readability a bit.

Pick-to: 6.5
Change-Id: I3d0227e616a3c47e14ae7b5cfe4b47a39d778e5e
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Yuhang Zhao 2022-12-23 13:38:22 +08:00 committed by Oliver Wolff
parent 86398b477b
commit 21baa76230

View File

@ -737,7 +737,11 @@ inline void determineDebugAndDependentLibs(const ImageNtHeader *nth, const void
} else {
// When an MSVC debug entry is present, check whether the debug runtime
// is actually used to detect -release / -force-debug-info builds.
*isDebugIn = hasDebugEntry && checkMsvcDebugRuntime(dependentLibraries) != MsvcReleaseRuntime;
const MsvcDebugRuntimeResult msvcrt = checkMsvcDebugRuntime(dependentLibraries);
if (msvcrt == NoMsvcRuntime)
*isDebugIn = hasDebugEntry;
else
*isDebugIn = hasDebugEntry && msvcrt == MsvcDebugRuntime;
}
}
}