Minor cleanups:

* Make sure variables are always initialized
* Use lround instead of adding .5 and casting
* Remove some unneeded vars
* Check for null before calling strcmp
* Remove redundant if conditions
* Remove make_TxQ factory function
This commit is contained in:
seelabs
2020-04-24 07:32:34 -07:00
committed by manojsdoshi
parent 6d28f2a8d9
commit 328e42ad42
11 changed files with 28 additions and 43 deletions

View File

@@ -531,7 +531,7 @@ struct ExistingElementPool
return STAmount{};
return (*sle)[sfBalance];
};
std::uint64_t totalXRP[2];
std::uint64_t totalXRP[2]{};
for (auto ai1 = accounts.begin(), aie = accounts.end(); ai1 != aie;
++ai1)
{