Skip to content

Commit

Permalink
default -> getDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Oct 10, 2024
1 parent 7f79837 commit 526e660
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cesium3DTilesSelection/src/TilesetContentManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ TilesetContentManager::TilesetContentManager(
_tileLoadsInProgress{0},
_loadedTilesCount{0},
_tilesDataUsed{0},
_pSharedAssets(CesiumGltfReader::GltfSharedAssetSystem::default()),
_pSharedAssets(CesiumGltfReader::GltfSharedAssetSystem::getDefault()),
_destructionCompletePromise{externals.asyncSystem.createPromise<void>()},
_destructionCompleteFuture{
this->_destructionCompletePromise.getFuture().share()},
Expand Down Expand Up @@ -696,7 +696,7 @@ TilesetContentManager::TilesetContentManager(
_tileLoadsInProgress{0},
_loadedTilesCount{0},
_tilesDataUsed{0},
_pSharedAssets(CesiumGltfReader::GltfSharedAssetSystem::default()),
_pSharedAssets(CesiumGltfReader::GltfSharedAssetSystem::getDefault()),
_destructionCompletePromise{externals.asyncSystem.createPromise<void>()},
_destructionCompleteFuture{
this->_destructionCompletePromise.getFuture().share()},
Expand Down Expand Up @@ -848,7 +848,7 @@ TilesetContentManager::TilesetContentManager(
_tileLoadsInProgress{0},
_loadedTilesCount{0},
_tilesDataUsed{0},
_pSharedAssets(CesiumGltfReader::GltfSharedAssetSystem::default()),
_pSharedAssets(CesiumGltfReader::GltfSharedAssetSystem::getDefault()),
_destructionCompletePromise{externals.asyncSystem.createPromise<void>()},
_destructionCompleteFuture{
this->_destructionCompletePromise.getFuture().share()},
Expand Down
2 changes: 1 addition & 1 deletion CesiumGltfReader/include/CesiumGltfReader/GltfReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ struct CESIUMGLTFREADER_API GltfReaderOptions {
* that might appear in this glTF.
*/
CesiumUtility::IntrusivePointer<GltfSharedAssetSystem> pSharedAssets =
GltfSharedAssetSystem::default();
GltfSharedAssetSystem::getDefault();
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace CesiumGltfReader {
class GltfSharedAssetSystem
: public CesiumUtility::ReferenceCountedThreadSafe<GltfSharedAssetSystem> {
public:
static CesiumUtility::IntrusivePointer<GltfSharedAssetSystem> default();
static CesiumUtility::IntrusivePointer<GltfSharedAssetSystem> getDefault();

CesiumUtility::IntrusivePointer<
CesiumAsync::SharedAssetDepot<CesiumGltf::ImageCesium>>
Expand Down
2 changes: 1 addition & 1 deletion CesiumGltfReader/src/GltfSharedAssetSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ CesiumUtility::IntrusivePointer<GltfSharedAssetSystem> createDefault() {
} // namespace

/*static*/ CesiumUtility::IntrusivePointer<GltfSharedAssetSystem>
GltfSharedAssetSystem::default() {
GltfSharedAssetSystem::getDefault() {
static CesiumUtility::IntrusivePointer<GltfSharedAssetSystem> pDefault =
createDefault();
return pDefault;
Expand Down

0 comments on commit 526e660

Please sign in to comment.