From c6f10d493d1af32f122607adab5cb7d32f86a549 Mon Sep 17 00:00:00 2001 From: "ulukyn@gmail.com" Date: Tue, 13 Dec 2016 23:42:02 +0100 Subject: [PATCH] Fixed: updateVector don't need return a boolean --HG-- branch : compatibility-develop --- code/ryzom/client/src/misc.cpp | 2 +- code/ryzom/client/src/misc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/misc.cpp b/code/ryzom/client/src/misc.cpp index f3995e9b3..332d7b2d5 100644 --- a/code/ryzom/client/src/misc.cpp +++ b/code/ryzom/client/src/misc.cpp @@ -1523,7 +1523,7 @@ bool getRelativeFloatFromString(const std::string src, float &dst) return false; } -bool updateVector(const string part, CVector &dst, float value, bool add /* = false */) +void updateVector(const string part, CVector &dst, float value, bool add /* = false */) { string p = part; if (part.size() > 1) diff --git a/code/ryzom/client/src/misc.h b/code/ryzom/client/src/misc.h index 18324d333..9ba48b718 100644 --- a/code/ryzom/client/src/misc.h +++ b/code/ryzom/client/src/misc.h @@ -169,7 +169,7 @@ std::string getStringCategory(const ucstring &src, ucstring &dest, bool alwaysAd std::string getStringCategoryIfAny(const ucstring &src, ucstring &dest); bool getRelativeFloatFromString(const std::string src, float &dst); -bool updateVector(const std::string part, NLMISC::CVector &dst, float value, bool add = false); +void updateVector(const std::string part, NLMISC::CVector &dst, float value, bool add = false); // Number of shortcut #define RYZOM_MAX_SHORTCUT 20