1
0
Fork 0

std::move not needed for local objects

This commit is contained in:
Scott Giese 2022-01-21 00:12:29 -06:00
parent 37ecd8aa21
commit 1f272e7d6f

View file

@ -379,7 +379,7 @@ std::shared_ptr<BezNode> Parser::ParseNode( int type, char* line, std::shared_pt
curNode->SetTerm( term );
curNode->SetClose( close );
return std::move(curNode);
return curNode;
}
std::shared_ptr<LinearFeature> Parser::ParseFeature( char* line )
@ -397,7 +397,7 @@ std::shared_ptr<LinearFeature> Parser::ParseFeature( char* line )
TG_LOG(SG_GENERAL, SG_DEBUG, "Creating Linear Feature with description \"" << line << "\"");
return std::move(feature);
return feature;
}
std::shared_ptr<ClosedPoly> Parser::ParsePavement( char* line )
@ -424,7 +424,7 @@ std::shared_ptr<ClosedPoly> Parser::ParsePavement( char* line )
poly = std::make_shared<ClosedPoly>(st, s, th, d);
return std::move(poly);
return poly;
}
std::shared_ptr<ClosedPoly> Parser::ParseBoundary( char* line )
@ -448,7 +448,7 @@ std::shared_ptr<ClosedPoly> Parser::ParseBoundary( char* line )
TG_LOG(SG_GENERAL, SG_DEBUG, "Creating Closed Poly for airport boundary : " << d);
poly = std::make_shared<ClosedPoly>(d);
return std::move(poly);
return poly;
}
int Parser::SetState( int state )