std::move not needed for local objects
This commit is contained in:
parent
37ecd8aa21
commit
1f272e7d6f
1 changed files with 4 additions and 4 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue