Skip to content

Commit

Permalink
Fix more occurrences of "using namespace CesiumGltf".
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Nov 13, 2024
1 parent 01742ba commit 10f2b09
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
#include "Misc/AutomationTest.h"
#include <limits>

using namespace CesiumGltf;

BEGIN_DEFINE_SPEC(
FCesiumPropertyTablePropertySpec,
"Cesium.Unit.PropertyTableProperty",
Expand All @@ -18,6 +16,8 @@ BEGIN_DEFINE_SPEC(
END_DEFINE_SPEC(FCesiumPropertyTablePropertySpec)

void FCesiumPropertyTablePropertySpec::Define() {
using namespace CesiumGltf;

Describe("Constructor", [this]() {
It("constructs invalid instance by default", [this]() {
FCesiumPropertyTableProperty property;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ BEGIN_DEFINE_SPEC(
EAutomationTestFlags::ServerContext |
EAutomationTestFlags::CommandletContext |
EAutomationTestFlags::ProductFilter)
Model model;
MeshPrimitive* pPrimitive;
ExtensionModelExtStructuralMetadata* pExtension;
PropertyTexture* pPropertyTexture;
CesiumGltf::Model model;
CesiumGltf::MeshPrimitive* pPrimitive;
CesiumGltf::ExtensionModelExtStructuralMetadata* pExtension;
CesiumGltf::PropertyTexture* pPropertyTexture;
TObjectPtr<UCesiumGltfComponent> pModelComponent;
TObjectPtr<UCesiumGltfPrimitiveComponent> pPrimitiveComponent;

Expand All @@ -31,6 +31,8 @@ const std::vector<FVector2D> texCoords{
END_DEFINE_SPEC(FCesiumPropertyTextureSpec)

void FCesiumPropertyTextureSpec::Define() {
using namespace CesiumGltf;

BeforeEach([this]() {
model = Model();
pExtension = &model.addExtension<ExtensionModelExtStructuralMetadata>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const std::vector<FVector2D> texCoords{
END_DEFINE_SPEC(FCesiumPropertyTexturePropertySpec)

void FCesiumPropertyTexturePropertySpec::Define() {
using namespace CesiumGltf;

Describe("Constructor", [this]() {
It("constructs invalid instance by default", [this]() {
FCesiumPropertyTextureProperty property;
Expand Down

0 comments on commit 10f2b09

Please sign in to comment.