Skip to content

Commit

Permalink
fixup static arg
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed May 20, 2024
1 parent 159ca2a commit 8f2137f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixd/lib/Controller/Diagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void Controller::updateSuppressed(const std::vector<std::string> &Sup) {

// Insert declared sname in nixf, diagnostics.
struct AddDK {
AddDK(std::string Name, DK Kind) { DKMap.insert({Name, Kind}); }
AddDK(const std::string &Name, DK Kind) { DKMap.insert({Name, Kind}); }
};
#define DIAG(SNAME, CNAME, LEVEL, STR) \
static AddDK DK_Add_##CNAME(SNAME, DK::DK_##CNAME);
Expand Down

0 comments on commit 8f2137f

Please sign in to comment.