summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/ChunkCache.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-28 15:44:58 +0100
committerMattes D <github@xoft.cz>2014-10-28 15:44:58 +0100
commitd6c663cbc508859b36543797a7ebbee52a27dc6a (patch)
treec016dffaac4092a61e694ab5dccfd54a06f33e0f /Tools/QtBiomeVisualiser/ChunkCache.cpp
parentMerge pull request #1573 from mc-server/warningfixes (diff)
downloadcuberite-d6c663cbc508859b36543797a7ebbee52a27dc6a.tar
cuberite-d6c663cbc508859b36543797a7ebbee52a27dc6a.tar.gz
cuberite-d6c663cbc508859b36543797a7ebbee52a27dc6a.tar.bz2
cuberite-d6c663cbc508859b36543797a7ebbee52a27dc6a.tar.lz
cuberite-d6c663cbc508859b36543797a7ebbee52a27dc6a.tar.xz
cuberite-d6c663cbc508859b36543797a7ebbee52a27dc6a.tar.zst
cuberite-d6c663cbc508859b36543797a7ebbee52a27dc6a.zip
Diffstat (limited to '')
-rw-r--r--Tools/QtBiomeVisualiser/ChunkCache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/QtBiomeVisualiser/ChunkCache.cpp b/Tools/QtBiomeVisualiser/ChunkCache.cpp
index 05c267d30..bd8ade304 100644
--- a/Tools/QtBiomeVisualiser/ChunkCache.cpp
+++ b/Tools/QtBiomeVisualiser/ChunkCache.cpp
@@ -37,14 +37,14 @@ ChunkPtr ChunkCache::fetch(int a_ChunkX, int a_ChunkZ)
// If the chunk is in cache but not valid, it means it has been already queued for rendering, do nothing now:
if (res != nullptr)
{
- return ChunkPtr(nullptr);
+ return ChunkPtr();
}
// There's no such item in the cache, create it now:
res = new ChunkPtr(new Chunk);
if (res == nullptr)
{
- return ChunkPtr(nullptr);
+ return ChunkPtr();
}
{
QMutexLocker lock(&m_Mtx);
@@ -55,7 +55,7 @@ ChunkPtr ChunkCache::fetch(int a_ChunkX, int a_ChunkZ)
queueChunkRender(a_ChunkX, a_ChunkZ, *res);
// Return failure, the chunk is not yet rendered:
- return ChunkPtr(nullptr);
+ return ChunkPtr();
}