Skip to content

Commit 14e1554

Browse files
authored
allow RVO in fromDbStringLocal (#189)
1 parent 586aacd commit 14e1554

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

trantor/utils/Date.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,7 @@ Date Date::fromDbStringLocal(const std::string &datetime)
310310
}
311311
}
312312
}
313-
return std::move(
314-
trantor::Date(year, month, day, hour, minute, second, microSecond));
313+
return trantor::Date(year, month, day, hour, minute, second, microSecond);
315314
}
316315
std::string Date::toCustomedFormattedStringLocal(const std::string &fmtStr,
317316
bool showMicroseconds) const

0 commit comments

Comments
 (0)