Skip to content

Commit

Permalink
Merge pull request #1008 from atgeirr/remove-pessimizing-move
Browse files Browse the repository at this point in the history
Remove pessimizing move() in return statements.
  • Loading branch information
jokva authored Dec 12, 2016
2 parents 9042380 + 6c0f4ea commit ee0e0aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions opm/parser/eclipse/EclipseState/IOConfig/RestartConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ RPTRST_integer( const std::vector< int >& ints ) {
mnemonics[ "PCOG" ] = ints[ PCO_index ];
}

return std::move( mnemonics );
return mnemonics;
}

inline std::map< std::string, int >
Expand All @@ -289,7 +289,7 @@ RPTSCHED_integer( const std::vector< int >& ints ) {
for( size_t i = 0; i < size; ++i )
mnemonics[ SCHEDIntegerKeywords[ i ] ] = ints[ i ];

return std::move( mnemonics );
return mnemonics;
}

template< typename F, typename G >
Expand Down Expand Up @@ -328,7 +328,7 @@ inline std::map< std::string, int > RPT( const DeckKeyword& keyword,
mnemonics.emplace( base, val );
}

return std::move( mnemonics );
return mnemonics;
}

inline void expand_RPTRST_mnemonics(std::map< std::string, int >& mnemonics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static Opm::Deck createDeck() {
"\n";

Opm::Parser parser;
return std::move( parser.parseString(deckData, Opm::ParseContext() ) );
return parser.parseString(deckData, Opm::ParseContext() );
}


Expand Down Expand Up @@ -116,7 +116,7 @@ static Opm::Deck createValidIntDeck() {
"\n";

Opm::Parser parser;
return std::move( parser.parseString(deckData, Opm::ParseContext() ) );
return parser.parseString(deckData, Opm::ParseContext() );
}

static Opm::Deck createValidPERMXDeck() {
Expand Down Expand Up @@ -162,7 +162,7 @@ static Opm::Deck createValidPERMXDeck() {
"\n";

Opm::Parser parser;
return std::move( parser.parseString(deckData, Opm::ParseContext() ) );
return parser.parseString(deckData, Opm::ParseContext() );
}


Expand Down

0 comments on commit ee0e0aa

Please sign in to comment.