Skip to content

Commit 1bceed7

Browse files
committed
Remove unnecessary casts.
1 parent d381a14 commit 1bceed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cesium3DTilesSelection/test/TestTileLoadRequester.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TestTileLoadRequester : public TileLoadRequester {
2727
CESIUM_ASSERT(!this->_workerThread.empty());
2828
const Tile* pResult = this->_workerThread.back();
2929
this->_workerThread.pop_back();
30-
return const_cast<Tile*>(pResult);
30+
return pResult;
3131
}
3232

3333
bool hasMoreTilesToLoadInMainThread() const override {
@@ -38,7 +38,7 @@ class TestTileLoadRequester : public TileLoadRequester {
3838
CESIUM_ASSERT(!this->_mainThread.empty());
3939
const Tile* pResult = this->_mainThread.back();
4040
this->_mainThread.pop_back();
41-
return const_cast<Tile*>(pResult);
41+
return pResult;
4242
}
4343

4444
// Extra methods for testing

0 commit comments

Comments
 (0)