We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca7c0ae commit 1b6b631Copy full SHA for 1b6b631
tools/rules-check/rules-check.cc
@@ -32,7 +32,7 @@ void print_help(const char *name) {
32
33
34
int main(int argc, char **argv) {
35
- std::unique_ptr<modsecurity::RulesSet> rules (new modsecurity::RulesSet());
+ std::unique_ptr<modsecurity::RulesSet> rules = std::make_unique<modsecurity::RulesSet>();
36
char **args = argv;
37
int ret = 0;
38
@@ -45,7 +45,7 @@ int main(int argc, char **argv) {
45
46
while (*args != NULL) {
47
struct stat buffer;
48
- std::string arg = (*args);
+ std::string arg = *args;
49
std::string err;
50
int r;
51
0 commit comments