Skip to content

Commit

Permalink
fix redundant string init found with clang-tidy (#4781)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafedeli88 authored Mar 15, 2024
1 parent 8c84e79 commit 01ee64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Utils/WarpXAlgorithmSelection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ GetParticleBCTypeInteger( std::string BCType ){

std::string
GetFieldBCTypeString( int fb_type ) {
std::string boundary_name = "";
std::string boundary_name;
for (const auto &valid_pair : FieldBCType_algo_to_int) {
if ((valid_pair.second == fb_type)&&(valid_pair.first != "default")){
boundary_name = valid_pair.first;
Expand Down

0 comments on commit 01ee64e

Please sign in to comment.