@@ -2313,7 +2313,7 @@ namespace yy {
2313
2313
/* variables */ v,
2314
2314
/* actions */ a,
2315
2315
/* transformations */ t,
2316
- /* file name */ std::unique_ptr<std:: string>( new std::string ( *yystack_[3 ].location .end .filename ) ),
2316
+ /* file name */ std::string ( *yystack_[3 ].location .end .filename ),
2317
2317
/* line number */ yystack_[3 ].location .end .line
2318
2318
));
2319
2319
@@ -2337,7 +2337,7 @@ namespace yy {
2337
2337
/* variables */ v,
2338
2338
/* actions */ NULL ,
2339
2339
/* transformations */ NULL ,
2340
- /* file name */ std::unique_ptr<std:: string>( new std::string ( *yystack_[2 ].location .end .filename ) ),
2340
+ /* file name */ std::string ( *yystack_[2 ].location .end .filename ),
2341
2341
/* line number */ yystack_[2 ].location .end .line
2342
2342
));
2343
2343
if (driver.addSecRule (std::move (rule)) == false ) {
@@ -2363,7 +2363,7 @@ namespace yy {
2363
2363
std::unique_ptr<RuleUnconditional> rule (new RuleUnconditional (
2364
2364
/* actions */ a,
2365
2365
/* transformations */ t,
2366
- /* file name */ std::unique_ptr<std:: string>( new std::string ( *yystack_[1 ].location .end .filename ) ),
2366
+ /* file name */ std::string ( *yystack_[1 ].location .end .filename ),
2367
2367
/* line number */ yystack_[1 ].location .end .line
2368
2368
));
2369
2369
driver.addSecAction (std::move (rule));
@@ -2389,7 +2389,7 @@ namespace yy {
2389
2389
/* path to script */ yystack_[1 ].value .as < std::string > (),
2390
2390
/* actions */ a,
2391
2391
/* transformations */ t,
2392
- /* file name */ std::unique_ptr<std:: string>( new std::string ( *yystack_[1 ].location .end .filename ) ),
2392
+ /* file name */ std::string ( *yystack_[1 ].location .end .filename ),
2393
2393
/* line number */ yystack_[1 ].location .end .line
2394
2394
));
2395
2395
@@ -2469,7 +2469,7 @@ namespace yy {
2469
2469
#line 1241 "seclang-parser.yy"
2470
2470
{
2471
2471
driver.addSecMarker (modsecurity::utils::string::removeBracketsIfNeeded (yystack_[0 ].value .as < std::string > ()),
2472
- /* file name */ std::unique_ptr<std:: string>( new std::string ( *yystack_[0 ].location .end .filename ) ),
2472
+ /* file name */ std::string ( *yystack_[0 ].location .end .filename ),
2473
2473
/* line number */ yystack_[0 ].location .end .line
2474
2474
);
2475
2475
}
0 commit comments