mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Use make_unique to create unique ptr
This commit is contained in:
parent
ca7c0ae0b9
commit
1b6b631617
@ -32,7 +32,7 @@ void print_help(const char *name) {
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
std::unique_ptr<modsecurity::RulesSet> rules (new modsecurity::RulesSet());
|
||||
std::unique_ptr<modsecurity::RulesSet> rules = std::make_unique<modsecurity::RulesSet>();
|
||||
char **args = argv;
|
||||
int ret = 0;
|
||||
|
||||
@ -45,7 +45,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
while (*args != NULL) {
|
||||
struct stat buffer;
|
||||
std::string arg = (*args);
|
||||
std::string arg = *args;
|
||||
std::string err;
|
||||
int r;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user