Skip to content

Commit

Permalink
#1855 fix build for gcc-11
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Nov 21, 2024
1 parent e3d1cca commit 8dd4165
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libethereum/Account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ AccountMap dev::eth::jsonToAccountMap( std::string const& _json, u256 const& _de
}

if ( haveStorage )
for ( pair< string, js::mValue > const& j :
for ( pair< string, js::mValue > const j :
accountMaskJson.at( c_storage ).get_obj() )
ret[a].setStorage( u256( j.first ), u256( j.second.get_str() ) );
}
Expand Down
2 changes: 1 addition & 1 deletion test/tools/jsontests/vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ json_spirit::mValue VmTestSuite::doTests( json_spirit::mValue const& _input, boo
if ( s.second == 0 )
keystoDelete.push_back( s.first );
}
for ( auto const key : keystoDelete ) {
for ( auto const& key : keystoDelete ) {
get< 2 >( a.second ).erase( key );
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/unittests/libdevcrypto/SecretStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE( import_key_from_file,

BOOST_AUTO_TEST_CASE( import_secret,
*boost::unit_test::precondition( dev::test::run_not_express ) ) {
for ( string const& password : {"foobar", ""} ) {
for ( string const password : {"foobar", ""} ) {
TransientDirectory storeDir;
string priv = "0202020202020202020202020202020202020202020202020202020202020202";

Expand All @@ -137,7 +137,7 @@ BOOST_AUTO_TEST_CASE( import_secret,
}

BOOST_AUTO_TEST_CASE( import_secret_bytesConstRef ) {
for ( string const& password : {"foobar", ""} ) {
for ( string const password : {"foobar", ""} ) {
TransientDirectory storeDir;
string priv = "0202020202020202020202020202020202020202020202020202020202020202";

Expand Down

0 comments on commit 8dd4165

Please sign in to comment.