Skip to content

Commit 1f625f8

Browse files
authored
Merge pull request #1185 from bitshares/sonar_bugs
Fix 2 bugs reported by sonarqube
2 parents 8408ea0 + e99eff5 commit 1f625f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/plugins/snapshot/snapshot.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static void create_snapshot( const graphene::chain::database& db, const fc::path
9292
{
9393
out.open( dest );
9494
}
95-
catch ( fc::exception e )
95+
catch ( fc::exception& e )
9696
{
9797
wlog( "Failed to open snapshot destination: ${ex}", ("ex",e) );
9898
return;
@@ -104,7 +104,7 @@ static void create_snapshot( const graphene::chain::database& db, const fc::path
104104
{
105105
db.get_index( (uint8_t)space_id, (uint8_t)type_id );
106106
}
107-
catch (fc::assert_exception e)
107+
catch (fc::assert_exception& e)
108108
{
109109
continue;
110110
}

0 commit comments

Comments
 (0)