summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorbibo38 <bibo38@github.com>2015-07-12 20:58:19 +0200
committerbibo38 <bibo38@github.com>2015-07-12 21:02:47 +0200
commit0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127 (patch)
tree5dad04d59b122af5710099331070366d5b8b1baa /Tools
parentMerge pull request #2330 from cuberite/libraryupdate (diff)
downloadcuberite-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.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();
}