summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/MainWindow.cpp
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2015-07-13 00:54:58 +0200
committerJulian Laubstein <julianlaubstein@yahoo.de>2015-07-13 00:54:58 +0200
commitf6f27a139e67edf4f400dfae52b66fa24f5b8b29 (patch)
treeb8ff113b4dc299526c8f33573ca4e0491683dc5b /Tools/QtBiomeVisualiser/MainWindow.cpp
parentMerge pull request #2339 from mmdk95/master (diff)
parentChanging the shared_ptr/unique_ptr constructors to the make_shared/make_unique functions (diff)
downloadcuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar
cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar.gz
cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar.bz2
cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar.lz
cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar.xz
cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar.zst
cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.zip
Diffstat (limited to '')
-rw-r--r--Tools/QtBiomeVisualiser/MainWindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.cpp b/Tools/QtBiomeVisualiser/MainWindow.cpp
index c6ea8656e..8d5b768d8 100644
--- a/Tools/QtBiomeVisualiser/MainWindow.cpp
+++ b/Tools/QtBiomeVisualiser/MainWindow.cpp
@@ -87,7 +87,7 @@ void MainWindow::newGenerator()
// Set the chunk source:
cIniFilePtr iniFile = m_GeneratorSetup->getIniFile();
- m_BiomeView->setChunkSource(std::shared_ptr<BioGenSource>(new BioGenSource(iniFile)));
+ m_BiomeView->setChunkSource(std::make_shared<BioGenSource>(iniFile));
m_BiomeView->redraw();
}
@@ -108,7 +108,7 @@ void MainWindow::openGenerator()
openGeneratorSetup(worldIni.toStdString());
// Set the chunk source:
- m_BiomeView->setChunkSource(std::shared_ptr<BioGenSource>(new BioGenSource(m_GeneratorSetup->getIniFile())));
+ m_BiomeView->setChunkSource(std::make_shared<BioGenSource>(m_GeneratorSetup->getIniFile()));
m_BiomeView->redraw();
}
@@ -129,7 +129,7 @@ void MainWindow::openWorld()
closeGeneratorSetup();
// Set the chunk source:
- m_BiomeView->setChunkSource(std::shared_ptr<AnvilSource>(new AnvilSource(regionFolder)));
+ m_BiomeView->setChunkSource(std::make_shared<AnvilSource>(regionFolder));
m_BiomeView->redraw();
}
@@ -150,7 +150,7 @@ void MainWindow::openVanillaWorld()
closeGeneratorSetup();
// Set the chunk source:
- m_BiomeView->setChunkSource(std::shared_ptr<AnvilSource>(new AnvilSource(action->data().toString())));
+ m_BiomeView->setChunkSource(std::make_shared<AnvilSource>(action->data().toString()));
m_BiomeView->redraw();
}