From d265b5374e4da539a37e45a768ae3705f5545c2c Mon Sep 17 00:00:00 2001 From: Joseph Birkner Date: Thu, 22 Feb 2024 08:58:14 +0100 Subject: [PATCH] Additional int casts. --- Cesium3DTilesContent/src/PntsToGltfConverter.cpp | 4 ++-- Cesium3DTilesContent/src/QuantizedMeshLoader.cpp | 2 +- Cesium3DTilesSelection/src/CesiumIonTilesetLoader.cpp | 4 ++-- Cesium3DTilesSelection/src/TilesetContentManager.cpp | 2 +- Cesium3DTilesSelection/src/TilesetJsonLoader.cpp | 4 ++-- CesiumRasterOverlays/src/BingMapsRasterOverlay.cpp | 2 +- CesiumRasterOverlays/src/IonRasterOverlay.cpp | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cesium3DTilesContent/src/PntsToGltfConverter.cpp b/Cesium3DTilesContent/src/PntsToGltfConverter.cpp index 3b2e50868..02463aab0 100644 --- a/Cesium3DTilesContent/src/PntsToGltfConverter.cpp +++ b/Cesium3DTilesContent/src/PntsToGltfConverter.cpp @@ -617,7 +617,7 @@ rapidjson::Document parseFeatureTableJson( parsedContent.errors.emplaceError(fmt::format( "Error when parsing feature table JSON, error code {} at byte offset " "{}", - document.GetParseError(), + (int)document.GetParseError(), document.GetErrorOffset())); return document; } @@ -783,7 +783,7 @@ rapidjson::Document parseBatchTableJson( "Error when parsing batch table JSON, error code {} at byte " "offset " "{}. Skip parsing metadata", - document.GetParseError(), + (int)document.GetParseError(), document.GetErrorOffset())); return document; } diff --git a/Cesium3DTilesContent/src/QuantizedMeshLoader.cpp b/Cesium3DTilesContent/src/QuantizedMeshLoader.cpp index b3c43a92c..d44b5eae2 100644 --- a/Cesium3DTilesContent/src/QuantizedMeshLoader.cpp +++ b/Cesium3DTilesContent/src/QuantizedMeshLoader.cpp @@ -1178,7 +1178,7 @@ static QuantizedMeshMetadataResult processMetadata( if (metadata.HasParseError()) { result.errors.emplaceError(fmt::format( "Error when parsing metadata, error code {} at byte offset {}", - metadata.GetParseError(), + (int)metadata.GetParseError(), metadata.GetErrorOffset())); return result; } diff --git a/Cesium3DTilesSelection/src/CesiumIonTilesetLoader.cpp b/Cesium3DTilesSelection/src/CesiumIonTilesetLoader.cpp index 5ea6e2bae..6a2a75a1e 100644 --- a/Cesium3DTilesSelection/src/CesiumIonTilesetLoader.cpp +++ b/Cesium3DTilesSelection/src/CesiumIonTilesetLoader.cpp @@ -58,7 +58,7 @@ std::optional getNewAccessToken( pLogger, "Error when parsing Cesium ion response, error code {} at byte offset " "{}", - ionResponse.GetParseError(), + (int)ionResponse.GetParseError(), ionResponse.GetErrorOffset()); return std::nullopt; } @@ -244,7 +244,7 @@ mainThreadHandleEndpointResponse( result.errors.emplaceError(fmt::format( "Error when parsing Cesium ion response JSON, error code {} at byte " "offset {}", - ionResponse.GetParseError(), + (int)ionResponse.GetParseError(), ionResponse.GetErrorOffset())); return externals.asyncSystem.createResolvedFuture(std::move(result)); } diff --git a/Cesium3DTilesSelection/src/TilesetContentManager.cpp b/Cesium3DTilesSelection/src/TilesetContentManager.cpp index b12a112cb..471af0a78 100644 --- a/Cesium3DTilesSelection/src/TilesetContentManager.cpp +++ b/Cesium3DTilesSelection/src/TilesetContentManager.cpp @@ -689,7 +689,7 @@ TilesetContentManager::TilesetContentManager( result.errors.emplaceError(fmt::format( "Error when parsing tileset JSON, error code {} at byte " "offset {}", - tilesetJson.GetParseError(), + (int)tilesetJson.GetParseError(), tilesetJson.GetErrorOffset())); return asyncSystem.createResolvedFuture(std::move(result)); } diff --git a/Cesium3DTilesSelection/src/TilesetJsonLoader.cpp b/Cesium3DTilesSelection/src/TilesetJsonLoader.cpp index 70e0a028b..3c1028123 100644 --- a/Cesium3DTilesSelection/src/TilesetJsonLoader.cpp +++ b/Cesium3DTilesSelection/src/TilesetJsonLoader.cpp @@ -685,7 +685,7 @@ TileLoadResult parseExternalTilesetInWorkerThread( SPDLOG_LOGGER_ERROR( pLogger, "Error when parsing tileset JSON, error code {} at byte offset {}", - tilesetJson.GetParseError(), + (int)tilesetJson.GetParseError(), tilesetJson.GetErrorOffset()); return TileLoadResult::createFailedResult(std::move(pCompletedRequest)); } @@ -782,7 +782,7 @@ TilesetJsonLoader::createLoader( result.errors.emplaceError(fmt::format( "Error when parsing tileset JSON, error code {} at byte offset " "{}", - tilesetJson.GetParseError(), + (int)tilesetJson.GetParseError(), tilesetJson.GetErrorOffset())); return result; } diff --git a/CesiumRasterOverlays/src/BingMapsRasterOverlay.cpp b/CesiumRasterOverlays/src/BingMapsRasterOverlay.cpp index fca88d623..ebb26250f 100644 --- a/CesiumRasterOverlays/src/BingMapsRasterOverlay.cpp +++ b/CesiumRasterOverlays/src/BingMapsRasterOverlay.cpp @@ -371,7 +371,7 @@ BingMapsRasterOverlay::createTileProvider( fmt::format( "Error while parsing Bing Maps imagery metadata, error code " "{} at byte offset {}", - response.GetParseError(), + (int)response.GetParseError(), response.GetErrorOffset())}); } diff --git a/CesiumRasterOverlays/src/IonRasterOverlay.cpp b/CesiumRasterOverlays/src/IonRasterOverlay.cpp index 196ab96d9..c39294396 100644 --- a/CesiumRasterOverlays/src/IonRasterOverlay.cpp +++ b/CesiumRasterOverlays/src/IonRasterOverlay.cpp @@ -127,7 +127,7 @@ IonRasterOverlay::createTileProvider( fmt::format( "Error while parsing Cesium ion raster overlay response, " "error code {} at byte offset {}", - response.GetParseError(), + (int)response.GetParseError(), response.GetErrorOffset())}); }