aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2021-07-07 01:00:12 +0200
committerGravatar GitHub <noreply@github.com> 2021-07-06 16:00:12 -0700
commitf76fc32644dbe491293db3c844eb802b4d7ee9bd (patch)
tree5bd1bd1c908db6b8f18bf014bb6ac1f1cc3fdc29 /Source/WarpX.cpp
parent0356216f504643a0e33a6932efc5c2cbf9a2abe1 (diff)
downloadWarpX-f76fc32644dbe491293db3c844eb802b4d7ee9bd.tar.gz
WarpX-f76fc32644dbe491293db3c844eb802b4d7ee9bd.tar.zst
WarpX-f76fc32644dbe491293db3c844eb802b4d7ee9bd.zip
Fix readability-container-size-empty warning raised by clang-tidy (#2055)
* fix readability-container-size-empty warning raised by clang-tidy * fix bug
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 1cfb142ea..f31205356 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -871,7 +871,7 @@ WarpX::ReadParameters ()
std::vector<std::string> lasers_names;
pp_lasers.queryarr("names", lasers_names);
- if (species_names.size() > 0 || lasers_names.size() > 0) {
+ if (!species_names.empty() || !lasers_names.empty()) {
int particle_shape;
if (pp_algo.query("particle_shape", particle_shape) == false)
{