Skip to content

Commit d9fb307

Browse files
committed
Fix clang-tidy issue with old STL
1 parent b6282ce commit d9fb307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/json/big_list_of_naughty_strings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
std::string get_file_contents( const char* filename )
1515
{
1616
std::ifstream in( filename, std::ios::in | std::ios::binary );
17-
if( in ) {
17+
if( !in.fail() ) {
1818
std::string contents;
1919
in.seekg( 0, std::ios::end );
2020
contents.resize( static_cast< std::string::size_type >( in.tellg() ) );

0 commit comments

Comments
 (0)