Skip to content

Commit

Permalink
src: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
yamachu committed Jan 23, 2025
1 parent 4b68c26 commit 24ac7b9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/node_modules.cc
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,8 @@ std::wstring ConvertToWideString(const std::string& str) {
int size_needed = MultiByteToWideChar(
cp, 0, &str[0], static_cast<int>(str.size()), nullptr, 0);
std::wstring wstrTo(size_needed, 0);
MultiByteToWideChar(cp,
0,
&str[0],
static_cast<int>(str.size()),
&wstrTo[0],
size_needed);
MultiByteToWideChar(
cp, 0, &str[0], static_cast<int>(str.size()), &wstrTo[0], size_needed);
return wstrTo;
}
#endif
Expand Down

0 comments on commit 24ac7b9

Please sign in to comment.