removing more boost references

This commit is contained in:
Alister
2021-12-12 22:46:57 +00:00
parent b5491bfdc5
commit 9e809cef71
4 changed files with 4 additions and 13 deletions

View File

@@ -9,7 +9,6 @@
#include <QListWidget>
#include <QApplication>
#include <qt-color-widgets/color_selector.hpp>
#include <boost/optional.hpp>
#include <string>
#include <unordered_map>
#include <vector>

View File

@@ -10,8 +10,6 @@
#include <QtWidgets/QDoubleSpinBox>
#include <QtWidgets/QSlider>
#include <boost/optional.hpp>
class MapView;
class QButtonGroup;
class World;

View File

@@ -1,11 +1,7 @@
// This file is part of Noggit3, licensed under GNU General Public License (version 3).
#pragma once
#include <noggit/Selection.h>
#include <boost/optional.hpp>
#include <QtWidgets/QDoubleSpinBox>
#include <QtWidgets/QWidget>
#include <QDockWidget>

View File

@@ -32,8 +32,6 @@
#include <QSysInfo>
#include <QStandardPaths>
#include <QDir>
#include <boost/function.hpp>
#include <boost/format.hpp>
#ifdef USE_MYSQL_UID_STORAGE
@@ -124,14 +122,14 @@ namespace Noggit
std::filesystem::path pluginPath = std::filesystem::path(lib_dir.absoluteFilePath("noggit").toStdString());
typedef boost::shared_ptr<Plugin>(PluginCreate)();
boost::function <PluginCreate> pluginCreator;
typedef std::shared_ptr<Plugin>(PluginCreate)();
std::function <PluginCreate> pluginCreator;
try
{
pluginCreator = boost::dll::import_alias<PluginCreate>(pluginPath,
pluginCreator = std::dll::import_alias<PluginCreate>(pluginPath,
"create_plugin", boost::dll::load_mode::append_decorations);
}
catch (const boost::system::system_error &err)
catch (const std::system::system_error &err)
{
return;
}