mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +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) {
|
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;
|
char **args = argv;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
while (*args != NULL) {
|
while (*args != NULL) {
|
||||||
struct stat buffer;
|
struct stat buffer;
|
||||||
std::string arg = (*args);
|
std::string arg = *args;
|
||||||
std::string err;
|
std::string err;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user