Skip to content

Commit

Permalink
style(autofix.ci): automated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Nov 26, 2023
1 parent 1ff802c commit 1123f64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/catacharset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ std::wstring utf8_to_wstr( const std::string &str )
#else
std::size_t sz = std::mbstowcs( nullptr, str.c_str(), 0 ) + 1;
std::wstring wstr( sz, '\0' );
(void)std::mbstowcs( wstr.data(), str.c_str(), sz );
( void )std::mbstowcs( wstr.data(), str.c_str(), sz );
strip_trailing_nulls( wstr );
return wstr;
#endif
Expand All @@ -408,7 +408,7 @@ std::string wstr_to_utf8( const std::wstring &wstr )
#else
std::size_t sz = std::wcstombs( nullptr, wstr.c_str(), 0 ) + 1;
std::string str( sz, '\0' );
(void)std::wcstombs( str.data(), wstr.c_str(), sz );
( void )std::wcstombs( str.data(), wstr.c_str(), sz );
strip_trailing_nulls( str );
return str;
#endif
Expand Down

0 comments on commit 1123f64

Please sign in to comment.