1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 07:37:45 +00:00

More boost gone

This commit is contained in:
mordred 2018-10-25 15:15:27 +02:00
parent 8b04ece7f4
commit b0b2b89237
12 changed files with 5 additions and 30 deletions

View file

@ -2,7 +2,6 @@
#define _BNPC_H_ #define _BNPC_H_
#include <Common.h> #include <Common.h>
#include <boost/enable_shared_from_this.hpp>
#include "Forwards.h" #include "Forwards.h"
#include "Chara.h" #include "Chara.h"

View file

@ -2,7 +2,6 @@
#define _CHARA_H_ #define _CHARA_H_
#include <Common.h> #include <Common.h>
#include <boost/enable_shared_from_this.hpp>
#include "Forwards.h" #include "Forwards.h"
#include "Actor.h" #include "Actor.h"
@ -18,8 +17,7 @@ namespace Entity {
\brief Base class for all animate actors \brief Base class for all animate actors
*/ */
class Chara : class Chara : public Actor
public Actor
{ {
public: public:
struct ActorStats struct ActorStats

View file

@ -2,7 +2,6 @@
#define _NPC_H_ #define _NPC_H_
#include <Common.h> #include <Common.h>
#include <boost/enable_shared_from_this.hpp>
#include "Forwards.h" #include "Forwards.h"
#include "Chara.h" #include "Chara.h"

View file

@ -1,5 +1,3 @@
#include <boost/make_shared.hpp>
#include <Common.h> #include <Common.h>
#include <Util/Util.h> #include <Util/Util.h>
#include <Util/UtilMath.h> #include <Util/UtilMath.h>

View file

@ -1,5 +1,3 @@
#include <boost/lexical_cast.hpp>
#include <boost/make_shared.hpp>
#include <boost/format.hpp> #include <boost/format.hpp>
#include <cinttypes> #include <cinttypes>

View file

@ -1,5 +1,3 @@
#include <boost/make_shared.hpp>
#include <Logging/Logger.h> #include <Logging/Logger.h>
#include <Database/DatabaseDef.h> #include <Database/DatabaseDef.h>

View file

@ -1,5 +1,4 @@
#include "NativeScriptMgr.h" #include "NativeScriptMgr.h"
#include <boost/filesystem.hpp>
#include <Crypt/md5.h> #include <Crypt/md5.h>

View file

@ -5,9 +5,6 @@
#include <set> #include <set>
#include <queue> #include <queue>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include "ScriptLoader.h" #include "ScriptLoader.h"
namespace Core { namespace Core {
@ -125,7 +122,7 @@ public:
/*! /*!
* @brief Creates an instance of NativeScriptMgr * @brief Creates an instance of NativeScriptMgr
* *
* @return a boost::shared_ptr to NativeScriptMgr * @return a std::shared_ptr to NativeScriptMgr
*/ */
std::shared_ptr< NativeScriptMgr > createNativeScriptMgr(); std::shared_ptr< NativeScriptMgr > createNativeScriptMgr();
} }

View file

@ -1,9 +1,3 @@
#include <boost/lexical_cast.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <boost/format.hpp>
#include <boost/foreach.hpp>
#include <Logging/Logger.h> #include <Logging/Logger.h>
#include <Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <Config/ConfigMgr.h> #include <Config/ConfigMgr.h>
@ -141,13 +135,12 @@ bool Core::Scripting::ScriptMgr::loadDir( const std::string& dirname, std::set<
fs::path targetDir( dirname ); fs::path targetDir( dirname );
fs::directory_iterator iter( targetDir ); fs::directory_iterator iter( targetDir );
fs::directory_iterator eod;
BOOST_FOREACH( fs::path const& i, std::make_pair( iter, eod ) ) for( const auto& i : iter )
{ {
if( fs::is_regular_file( i ) && fs::path( i.string() ).extension() == ext ) if( fs::is_regular_file( i ) && fs::path( i ).extension() == ext )
{ {
files.insert( i.string() ); files.insert( fs::path( i ) );
} }
} }

View file

@ -28,7 +28,6 @@
#include "ForwardsZone.h" #include "ForwardsZone.h"
#include <boost/make_shared.hpp>
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
#include <boost/algorithm/string/case_conv.hpp> #include <boost/algorithm/string/case_conv.hpp>
#include <thread> #include <thread>

View file

@ -3,7 +3,6 @@
#include <Common.h> #include <Common.h>
#include <boost/shared_ptr.hpp>
#include <mutex> #include <mutex>
#include <map> #include <map>

View file

@ -1,8 +1,6 @@
#ifndef _STATUSEFFECT_H_ #ifndef _STATUSEFFECT_H_
#define _STATUSEFFECT_H_ #define _STATUSEFFECT_H_
#include <boost/shared_ptr.hpp>
#include "Forwards.h" #include "Forwards.h"
namespace Core { namespace Core {