Skip to content

Commit

Permalink
fix critical code smells (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir authored Jul 13, 2023
1 parent 6a14322 commit 4d551bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ BindingConstraintLoader::SeparateValue(const EnvForLoading &env, const IniFile::
CString<64> stringWO = p->value;
String::Size setVal = p->value.find('%');
uint occurrence = 0;
stringWO.words("%", [&](const CString<64> &part) {
stringWO.words("%", [&occurrence, &setVal, &env, &ret, &p, &w, &o](const CString<64> &part) {
if (occurrence == 0) {
if (setVal == 0) // weight is null
{
Expand Down
2 changes: 1 addition & 1 deletion src/solver/simulation/sim_spread_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class SpreadGenerator
{
static constexpr double rangeDefault = 1.e-3;
public:
SpreadGenerator(double range = rangeDefault);
explicit SpreadGenerator(double range = rangeDefault);
void reset(unsigned int seed);
double generate();

Expand Down

0 comments on commit 4d551bf

Please sign in to comment.