From 55297dbe653044bf6813ed677e023225bfeb28f2 Mon Sep 17 00:00:00 2001 From: Fabien_HENON Date: Wed, 25 Jul 2012 00:32:14 +0200 Subject: [PATCH] Changed: #1469 Added .c_str() to strings in logs --HG-- branch : gsoc2012-fabien --- .../position_or_entity_type_helper.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/ryzom/server/src/entities_game_service/camera_animation_manager/position_or_entity_type_helper.cpp b/code/ryzom/server/src/entities_game_service/camera_animation_manager/position_or_entity_type_helper.cpp index 99412ccf2..2c4b42a4f 100644 --- a/code/ryzom/server/src/entities_game_service/camera_animation_manager/position_or_entity_type_helper.cpp +++ b/code/ryzom/server/src/entities_game_service/camera_animation_manager/position_or_entity_type_helper.cpp @@ -41,13 +41,13 @@ TPositionOrEntity CPositionOrEntityHelper::fromString(const std::string& s) CAIAliasTranslator::getInstance()->getNPCAliasesFromName(str, res); if (res.size() != 1) { - nlerror("TPositionOrentityHelper : no alias for entity name %s", str); + nlerror("TPositionOrentityHelper : no alias for entity name %s", str.c_str()); return TPositionOrEntity(); } TAIAlias alias = res[0]; if (alias == CAIAliasTranslator::Invalid) { - nlerror("TPositionOrentityHelper : invalid alias for entity name %s", str); + nlerror("TPositionOrentityHelper : invalid alias for entity name %s", str.c_str()); return TPositionOrEntity(); } NLMISC::CEntityId eid = CAIAliasTranslator::getInstance()->getEntityId(alias); @@ -77,17 +77,17 @@ TPositionOrEntity CPositionOrEntityHelper::fromString(const std::string& s) if (!NLMISC::fromString(xStr, x)) { - nlerror("TPositionOrentityHelper : invalid x component from string %s", xStr); + nlerror("TPositionOrentityHelper : invalid x component from string %s", xStr.c_str()); return TPositionOrEntity(); } if (!NLMISC::fromString(yStr, y)) { - nlerror("TPositionOrentityHelper : invalid y component from string %s", yStr); + nlerror("TPositionOrentityHelper : invalid y component from string %s", yStr.c_str()); return TPositionOrEntity(); } if (!NLMISC::fromString(yStr, x)) { - nlerror("TPositionOrentityHelper : invalid z component from string %s", zStr); + nlerror("TPositionOrentityHelper : invalid z component from string %s", zStr.c_str()); return TPositionOrEntity(); }