Core/Misc: Headers cleanup

Use simple std::string concatenation instead of stringstream to avoid including <sstream> header.

(cherry picked from commit 9c790e231e)
This commit is contained in:
jackpoz
2019-05-31 21:45:37 +02:00
committed by Shauren
parent a265e5bed1
commit b4652a38d3
4 changed files with 5 additions and 5 deletions

View File

@@ -22,6 +22,7 @@
#include "PathGenerator.h"
#include "RandomMovementGenerator.h"
#include "WaypointMovementGenerator.h"
#include <sstream>
MovementGenerator::~MovementGenerator() { }

View File

@@ -24,6 +24,7 @@
#include "MoveSplineInit.h"
#include "ObjectMgr.h"
#include "Player.h"
#include <sstream>
#define FLIGHT_TRAVEL_UPDATE 100
#define TIMEDIFF_NEXT_WP 250

View File

@@ -19,7 +19,7 @@
#define PathMovementBase_h__
#include "Define.h"
#include <sstream>
#include <string>
template<class Entity, class BasePath>
class PathMovementBase
@@ -32,10 +32,7 @@ class PathMovementBase
virtual std::string GetDebugInfo() const
{
std::stringstream sstr;
sstr << std::boolalpha
<< "Current Node: " << GetCurrentNode();
return sstr.str();
return "Current Node: " + std::to_string(GetCurrentNode());
};
protected:

View File

@@ -27,6 +27,7 @@
#include "ObjectMgr.h"
#include "Transport.h"
#include "WaypointManager.h"
#include <sstream>
WaypointMovementGenerator<Creature>::WaypointMovementGenerator(uint32 pathId, bool repeating) : _nextMoveTime(0), _pathId(pathId), _repeating(repeating), _loadedFromDB(true)
{