mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
Remove warnings and errors in Jenkin's gcc
This commit is contained in:
@@ -183,7 +183,7 @@ template <typename T>
|
||||
bool TemplateProperty<T>::setLua(lua_State* state)
|
||||
{
|
||||
bool success;
|
||||
T value = PropertyDelegate<TemplateProperty<T>>::fromLuaValue<T>(state, success);
|
||||
T value = PropertyDelegate<TemplateProperty<typename T>>::fromLuaValue<T>(state, success);
|
||||
if (success)
|
||||
set(value);
|
||||
return success;
|
||||
@@ -192,13 +192,13 @@ bool TemplateProperty<T>::setLua(lua_State* state)
|
||||
template <typename T>
|
||||
bool TemplateProperty<T>::getLua(lua_State* state) const
|
||||
{
|
||||
bool success = PropertyDelegate<TemplateProperty<T>>::toLuaValue<T>(state, _value);
|
||||
bool success = PropertyDelegate<TemplateProperty<typename T>>::toLuaValue<T>(state, _value);
|
||||
return success;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
int TemplateProperty<T>::typeLua() const {
|
||||
return PropertyDelegate<TemplateProperty<T>>::typeLua();
|
||||
return PropertyDelegate<TemplateProperty<typename T>>::typeLua();
|
||||
}
|
||||
|
||||
} // namespace properties
|
||||
|
||||
@@ -223,7 +223,7 @@ TEST_F(SpiceManagerTest, stringToEphemerisTime){
|
||||
|
||||
double ephemerisTime;
|
||||
double control_ephemerisTime;
|
||||
char *date = "Thu Mar 20 12:53:29 PST 1997";
|
||||
char date[SRCLEN] = "Thu Mar 20 12:53:29 PST 1997";
|
||||
str2et_c(date, &control_ephemerisTime);
|
||||
|
||||
ephemerisTime = openspace::SpiceManager::ref().stringToEphemerisTime(date);
|
||||
|
||||
Reference in New Issue
Block a user