Commit 130fe748 authored by Ozaq's avatar Ozaq

Fix clang 8 build

Building::AddTrainType was calling
void OutputHandler::Write(const char* message,...) with a non-trivial
type std::string. See clang doc for this diagnstic:

https://releases.llvm.org/8.0.0/tools/clang/docs/DiagnosticsReference.html#wnon-pod-varargs
parent 6798f0e4
...@@ -1275,13 +1275,10 @@ bool Building::AddGoal(Goal* goal) ...@@ -1275,13 +1275,10 @@ bool Building::AddGoal(Goal* goal)
return true; return true;
} }
bool Building:: bool Building::AddTrainType(std::shared_ptr<TrainType> TT)
AddTrainType(std::shared_ptr<TrainType> TT)
{ {
if (_trainTypes.count(TT->type)!=0) { if (_trainTypes.count(TT->type)!=0) {
Log->Write("WARNING: Duplicate type for train found [%s]",TT->type); Log->Write("WARNING: Duplicate type for train found [%s]",TT->type.c_str());
} }
_trainTypes[TT->type] = TT; _trainTypes[TT->type] = TT;
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment