mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-23 18:07:40 +00:00
fix: explicit cast T2A_ to const char* for clang-cl
clang-cl is stricter about converting the T2A_ helper result in this expression. Cast the conversion helper result explicitly to const char* so the intended string conversion is unambiguous across MSVC and clang-cl.
This commit is contained in:
@@ -69,7 +69,7 @@ void CBaseException::OutputString(LPCTSTR lpszFormat, ...)
|
||||
//WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), szBuf, _tcslen(szBuf), NULL, NULL);
|
||||
|
||||
//output it to the current directory of binary
|
||||
std::string output_str = textconv_helper::T2A_(szBuf);
|
||||
std::string output_str = static_cast<const char*>(textconv_helper::T2A_(szBuf));
|
||||
*output_file << output_str;
|
||||
output_file->flush();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user