Skip to content

Commit

Permalink
fix sonar major bugs
Browse files Browse the repository at this point in the history
Former-commit-id: 9233ae9abf6106e15153f7e5c3b4394178980d77 [formerly 816ad49cab27a3edacdd41aaf0e611b6524c53ff] [formerly 81093f734b02dd09e0f626d3508c081e38c891d4 [formerly 096f9ecfa4d3dcf378d08e318f29cda963a2f6f4]]
Former-commit-id: 2ae4bc86def77866f44f7d45acee25d8fbd547c9 [formerly ede443ef8a5d9ac6235f36d1432eb10b67c5ac64]
Former-commit-id: 93e876e1494c6330565ebf0eb372cd9cd5a6f7e4
  • Loading branch information
nickyang4github committed Sep 25, 2018
1 parent ca233a9 commit 698bd00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Frame/Launcher/AFMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,13 @@ bool ParseArgs(int argc, char* argv[])
std::cerr << parser;
return false;
}
catch (args::ParseError e)
catch (args::ParseError& e)
{
std::cerr << e.what() << std::endl;
std::cerr << parser;
return false;
}
catch (args::ValidationError e)
catch (args::ValidationError& e)
{
std::cerr << e.what() << std::endl;
std::cerr << parser;
Expand Down
4 changes: 2 additions & 2 deletions Frame/SDK/Core/AFDataTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ bool AFDataTable::AddRow(size_t row)
RowData* old_row_data = mxRowDatas[row];
if (nullptr != old_row_data)
{
delete row_data;
delete[] row_data;
return false;
}

Expand Down Expand Up @@ -241,7 +241,7 @@ bool AFDataTable::AddRow(size_t row, const AFIDataList& data)
RowData* old_row_data = mxRowDatas[row];
if (nullptr != old_row_data)
{
delete row_data;
delete[] row_data;
return false;
}

Expand Down

0 comments on commit 698bd00

Please sign in to comment.