mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Use make_unique to create unique ptr
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user