@@ -2313,7 +2313,7 @@ namespace yy {
23132313 /* variables */ v,
23142314 /* actions */ a,
23152315 /* 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 ),
23172317 /* line number */ yystack_[3 ].location .end .line
23182318 ));
23192319
@@ -2337,7 +2337,7 @@ namespace yy {
23372337 /* variables */ v,
23382338 /* actions */ NULL ,
23392339 /* 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 ),
23412341 /* line number */ yystack_[2 ].location .end .line
23422342 ));
23432343 if (driver.addSecRule (std::move (rule)) == false ) {
@@ -2363,7 +2363,7 @@ namespace yy {
23632363 std::unique_ptr<RuleUnconditional> rule (new RuleUnconditional (
23642364 /* actions */ a,
23652365 /* 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 ),
23672367 /* line number */ yystack_[1 ].location .end .line
23682368 ));
23692369 driver.addSecAction (std::move (rule));
@@ -2389,7 +2389,7 @@ namespace yy {
23892389 /* path to script */ yystack_[1 ].value .as < std::string > (),
23902390 /* actions */ a,
23912391 /* 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 ),
23932393 /* line number */ yystack_[1 ].location .end .line
23942394 ));
23952395
@@ -2469,7 +2469,7 @@ namespace yy {
24692469#line 1241 "seclang-parser.yy"
24702470 {
24712471 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 ),
24732473 /* line number */ yystack_[0 ].location .end .line
24742474 );
24752475 }
0 commit comments