From 162583571507784c6fd9d99ea95a9e02dfafaece Mon Sep 17 00:00:00 2001 From: roseatromero Date: Thu, 6 Feb 2025 11:54:48 +0000 Subject: [PATCH 1/2] Fix FManager deprecation warning --- .../src/main/resources/cpp-ue4/model-base-source.mustache | 2 ++ samples/client/petstore/cpp-ue4/Private/OpenAPIBaseModel.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/cpp-ue4/model-base-source.mustache b/modules/openapi-generator/src/main/resources/cpp-ue4/model-base-source.mustache index 1a551ca53152..8c4930d08494 100644 --- a/modules/openapi-generator/src/main/resources/cpp-ue4/model-base-source.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-ue4/model-base-source.mustache @@ -8,7 +8,9 @@ namespace {{this}} bool HttpRetryManager::Tick(float DeltaTime) { +#if ENGINE_MAJOR_VERSION <= 5 && ENGINE_MINOR_VERSION < 3 FManager::Update(); +#endif return true; } diff --git a/samples/client/petstore/cpp-ue4/Private/OpenAPIBaseModel.cpp b/samples/client/petstore/cpp-ue4/Private/OpenAPIBaseModel.cpp index a119a85b5c4c..0e54f9c097d3 100644 --- a/samples/client/petstore/cpp-ue4/Private/OpenAPIBaseModel.cpp +++ b/samples/client/petstore/cpp-ue4/Private/OpenAPIBaseModel.cpp @@ -17,7 +17,9 @@ namespace OpenAPI bool HttpRetryManager::Tick(float DeltaTime) { +#if ENGINE_MAJOR_VERSION <= 5 && ENGINE_MINOR_VERSION < 3 FManager::Update(); +#endif return true; } From ce69b7822e16d90500cd1aa3bbe090f656d31538 Mon Sep 17 00:00:00 2001 From: roseatromero Date: Thu, 6 Feb 2025 11:58:12 +0000 Subject: [PATCH 2/2] Fix operator --- .../src/main/resources/cpp-ue4/model-base-source.mustache | 2 +- samples/client/petstore/cpp-ue4/Private/OpenAPIBaseModel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/cpp-ue4/model-base-source.mustache b/modules/openapi-generator/src/main/resources/cpp-ue4/model-base-source.mustache index 8c4930d08494..fccd960e5e5d 100644 --- a/modules/openapi-generator/src/main/resources/cpp-ue4/model-base-source.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-ue4/model-base-source.mustache @@ -8,7 +8,7 @@ namespace {{this}} bool HttpRetryManager::Tick(float DeltaTime) { -#if ENGINE_MAJOR_VERSION <= 5 && ENGINE_MINOR_VERSION < 3 +#if ENGINE_MAJOR_VERSION <= 5 && ENGINE_MINOR_VERSION <= 3 FManager::Update(); #endif return true; diff --git a/samples/client/petstore/cpp-ue4/Private/OpenAPIBaseModel.cpp b/samples/client/petstore/cpp-ue4/Private/OpenAPIBaseModel.cpp index 0e54f9c097d3..7ffb2c4325e0 100644 --- a/samples/client/petstore/cpp-ue4/Private/OpenAPIBaseModel.cpp +++ b/samples/client/petstore/cpp-ue4/Private/OpenAPIBaseModel.cpp @@ -17,7 +17,7 @@ namespace OpenAPI bool HttpRetryManager::Tick(float DeltaTime) { -#if ENGINE_MAJOR_VERSION <= 5 && ENGINE_MINOR_VERSION < 3 +#if ENGINE_MAJOR_VERSION <= 5 && ENGINE_MINOR_VERSION <= 3 FManager::Update(); #endif return true;