Skip to content

Commit 82f27ed

Browse files
committed
reset stream flags
1 parent 5729f59 commit 82f27ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/analyzerinfo.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ void AnalyzerInformation::writeFilesTxt(const std::string &buildDir, const std::
5858
fout << afile << ".a" << (++fileCount[afile]) << ":" << userDefines << ":" << Path::simplifyPath(f) << '\n';
5959
}
6060

61+
std::ios savedFlags(0);
62+
savedFlags.copyfmt(fout);
6163
for (const FileSettings &fs : fileSettings) {
6264
const std::string afile = getFilename(fs.filename());
6365
fout << afile << ".a" << (++fileCount[afile]) << ":" << std::hex << fs.hash << ":" << Path::simplifyPath(fs.filename()) << std::endl;
6466
}
67+
fout.copyfmt(savedFlags);
6568
}
6669

6770
void AnalyzerInformation::close()

0 commit comments

Comments
 (0)