Skip to content

Commit 72a6e8d

Browse files
committed
适应gcc问题
1 parent 4fd3be6 commit 72a6e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeFormat/src/LuaFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ bool LuaFormat::ReformatSingleFile(std::string_view inputPath, std::string_view
146146
auto formattedText = f.GetFormatResult(t);
147147

148148
if (!outPath.empty()) {
149-
std::fstream fout(outPath, std::ios::out | std::ios::binary);
149+
std::fstream fout(std::string(outPath), std::ios::out | std::ios::binary);
150150
fout.write(formattedText.data(), formattedText.size());
151151
fout.close();
152152
} else {

0 commit comments

Comments
 (0)