diff --git a/Source/CesiumRuntime/Private/CesiumPropertyTableProperty.cpp b/Source/CesiumRuntime/Private/CesiumPropertyTableProperty.cpp index 6e322a1c8..daf97f759 100644 --- a/Source/CesiumRuntime/Private/CesiumPropertyTableProperty.cpp +++ b/Source/CesiumRuntime/Private/CesiumPropertyTableProperty.cpp @@ -54,7 +54,7 @@ propertyTablePropertyCallback(const std::any& property, Callback&& callback) { template TResult scalarPropertyTablePropertyCallback( const std::any& property, - FCesiumMetadataValueType valueType, + const FCesiumMetadataValueType& valueType, Callback&& callback) { switch (valueType.ComponentType) { case ECesiumMetadataComponentType::Int8: @@ -133,7 +133,7 @@ TResult scalarPropertyTablePropertyCallback( template TResult scalarArrayPropertyTablePropertyCallback( const std::any& property, - FCesiumMetadataValueType valueType, + const FCesiumMetadataValueType& valueType, Callback&& callback) { switch (valueType.ComponentType) { case ECesiumMetadataComponentType::Int8: @@ -218,7 +218,7 @@ TResult scalarArrayPropertyTablePropertyCallback( template TResult vecNPropertyTablePropertyCallback( const std::any& property, - FCesiumMetadataValueType valueType, + const FCesiumMetadataValueType& valueType, Callback&& callback) { switch (valueType.ComponentType) { case ECesiumMetadataComponentType::Int8: @@ -302,7 +302,7 @@ TResult vecNPropertyTablePropertyCallback( template TResult vecNPropertyTablePropertyCallback( const std::any& property, - FCesiumMetadataValueType valueType, + const FCesiumMetadataValueType& valueType, Callback&& callback) { if (valueType.Type == ECesiumMetadataType::Vec2) { return vecNPropertyTablePropertyCallback<2, Normalized, TResult, Callback>( @@ -346,7 +346,7 @@ TResult vecNPropertyTablePropertyCallback( template TResult vecNArrayPropertyTablePropertyCallback( const std::any& property, - FCesiumMetadataValueType valueType, + const FCesiumMetadataValueType& valueType, Callback&& callback) { switch (valueType.ComponentType) { case ECesiumMetadataComponentType::Int8: @@ -431,7 +431,7 @@ TResult vecNArrayPropertyTablePropertyCallback( template TResult vecNArrayPropertyTablePropertyCallback( const std::any& property, - FCesiumMetadataValueType valueType, + const FCesiumMetadataValueType& valueType, Callback&& callback) { if (valueType.Type == ECesiumMetadataType::Vec2) { return vecNArrayPropertyTablePropertyCallback< @@ -477,7 +477,7 @@ TResult vecNArrayPropertyTablePropertyCallback( template TResult matNPropertyTablePropertyCallback( const std::any& property, - FCesiumMetadataValueType valueType, + const FCesiumMetadataValueType& valueType, Callback&& callback) { switch (valueType.ComponentType) { case ECesiumMetadataComponentType::Int8: @@ -561,7 +561,7 @@ TResult matNPropertyTablePropertyCallback( template TResult matNPropertyTablePropertyCallback( const std::any& property, - FCesiumMetadataValueType valueType, + const FCesiumMetadataValueType& valueType, Callback&& callback) { if (valueType.Type == ECesiumMetadataType::Mat2) { return matNPropertyTablePropertyCallback<2, Normalized, TResult, Callback>( @@ -605,7 +605,7 @@ TResult matNPropertyTablePropertyCallback( template TResult matNArrayPropertyTablePropertyCallback( const std::any& property, - FCesiumMetadataValueType valueType, + const FCesiumMetadataValueType& valueType, Callback&& callback) { switch (valueType.ComponentType) { case ECesiumMetadataComponentType::Int8: @@ -690,7 +690,7 @@ TResult matNArrayPropertyTablePropertyCallback( template TResult matNArrayPropertyTablePropertyCallback( const std::any& property, - FCesiumMetadataValueType valueType, + const FCesiumMetadataValueType& valueType, Callback&& callback) { if (valueType.Type == ECesiumMetadataType::Mat2) { return matNArrayPropertyTablePropertyCallback< @@ -721,8 +721,8 @@ TResult matNArrayPropertyTablePropertyCallback( template TResult arrayPropertyTablePropertyCallback( - std::any property, - FCesiumMetadataValueType valueType, + const std::any& property, + const FCesiumMetadataValueType& valueType, Callback&& callback) { switch (valueType.Type) { case ECesiumMetadataType::Scalar: @@ -763,8 +763,8 @@ TResult arrayPropertyTablePropertyCallback( template TResult propertyTablePropertyCallback( - std::any property, - FCesiumMetadataValueType valueType, + const std::any& property, + const FCesiumMetadataValueType& valueType, bool normalized, Callback&& callback) { if (valueType.bIsArray) {