Silence Warnings

This commit is contained in:
2019-05-26 18:18:31 -07:00
parent 9f94db6c82
commit 1c80a13c23
26 changed files with 55 additions and 22 deletions

View File

@@ -179,6 +179,8 @@ int32 CScriptTemplate::CheckVolumeConditions(CScriptObject *pObj, bool LogErrors
case EPropertyType::Choice:
Val = TPropCast<CEnumProperty>(pProp)->Value(pData);
break;
default:
break;
}
// Test and check whether any of the conditions are true

View File

@@ -20,12 +20,12 @@ public:
CreateIntrinsic(EPropertyType::Float, this, mOffset + 8, "Z");
}
virtual void SerializeValue(void* pData, IArchive& Arc) const
virtual void SerializeValue(void* pData, IArchive& Arc) const override
{
ValueRef(pData).Serialize(Arc);
}
virtual TString ValueAsString(void* pData) const
virtual TString ValueAsString(void* pData) const override
{
return Value(pData).ToString();
}

View File

@@ -633,6 +633,7 @@ IProperty* IProperty::Create(EPropertyType Type,
case EPropertyType::Pointer: pOut = new CPointerProperty(Game); break;
case EPropertyType::Struct: pOut = new CStructProperty(Game); break;
case EPropertyType::Array: pOut = new CArrayProperty(Game); break;
default: break;
}
// If this assertion fails, then there is an unhandled type!

View File

@@ -453,6 +453,8 @@ public:
case EPropertyType::Guid:
MakeOptional = true;
break;
default:
break;
}
}