diff options
author | bibo38 <bibo38@github.com> | 2015-07-12 20:58:19 +0200 |
---|---|---|
committer | bibo38 <bibo38@github.com> | 2015-07-12 21:02:47 +0200 |
commit | 0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127 (patch) | |
tree | 5dad04d59b122af5710099331070366d5b8b1baa /Tools/QtBiomeVisualiser/MainWindow.cpp | |
parent | Merge pull request #2330 from cuberite/libraryupdate (diff) | |
download | cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar.gz cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar.bz2 cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar.lz cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar.xz cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar.zst cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.zip |
Diffstat (limited to '')
-rw-r--r-- | Tools/QtBiomeVisualiser/MainWindow.cpp | 8 |
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(); } |