Cleanup some cppcheck warnings

This commit is contained in:
Cary R
2022-12-28 00:00:31 -08:00
parent 5cd8bb3a88
commit dc8b7d0184
45 changed files with 273 additions and 266 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998-2021 Stephen Williams ([email protected])
* Copyright (c) 1998-2022 Stephen Williams ([email protected])
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@@ -148,7 +148,7 @@ bool Module::can_be_toplevel() const
// Don't choose modules with parameters without default value
for (std::map<perm_string,param_expr_t*>::const_iterator cur =
parameters.begin(); cur != parameters.end(); cur++) {
parameters.begin(); cur != parameters.end(); ++cur) {
if (cur->second->expr == 0)
return false;
}