mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-01 16:29:43 -05:00
Fix return-value-optimization errors
This commit is contained in:
+3
-2
@@ -203,8 +203,9 @@ void Time::setTime(std::string time) {
|
||||
std::string Time::currentTimeUTC() const {
|
||||
std::string date;
|
||||
SpiceManager::ref().getDateFromET(_time, date);
|
||||
return std::move(date);
|
||||
return date;
|
||||
}
|
||||
|
||||
scripting::ScriptEngine::LuaLibrary Time::luaLibrary() {
|
||||
scripting::ScriptEngine::LuaLibrary timeLibrary = {
|
||||
"time",
|
||||
@@ -248,7 +249,7 @@ scripting::ScriptEngine::LuaLibrary Time::luaLibrary() {
|
||||
}
|
||||
}
|
||||
};
|
||||
return std::move(timeLibrary);
|
||||
return timeLibrary;
|
||||
}
|
||||
|
||||
} // namespace openspace
|
||||
|
||||
Reference in New Issue
Block a user