cleanup clang-y static analysis

Some performance improvements.  eg. pass by ref.

Some paranoia pre-initialization of variables
which will be initialized later by indirection.

And some misc. cleanup.
This commit is contained in:
Michael Davidsaver
2023-06-12 16:05:26 -07:00
parent 51bd6a3d6c
commit b95b57945b
16 changed files with 19 additions and 23 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ struct FmtDelta {
field(prefix, val, verytop);
if(val.type()==TypeCode::Struct) {
for(auto fld : val.imarked()) {
for(const auto& fld : val.imarked()) {
std::string cprefix(prefix);
if(!verytop)
cprefix += '.';