kou commented on code in PR #49267:
URL: https://github.com/apache/arrow/pull/49267#discussion_r2922681330
##########
cpp/src/arrow/flight/sql/odbc/odbc_impl/system_dsn.cc:
##########
@@ -42,7 +38,7 @@ void PostArrowUtilError(arrow::Status error_status) {
std::wstring werror_msg = arrow::util::UTF8ToWideString(error_msg).ValueOr(
L"Error during utf8 to wide string conversion");
- PostError(ODBC_ERROR_GENERAL_ERR, werror_msg.c_str());
+ PostError(ODBC_ERROR_GENERAL_ERR, (LPWSTR)werror_msg.c_str());
Review Comment:
Could you use C++ style cast instead of C style cast in C++?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]