From 11dfd9e7d4967aaa2dcecc6d4f7a8ac21b4013fd Mon Sep 17 00:00:00 2001 From: Naios Date: Tue, 21 Jul 2015 20:49:32 +0200 Subject: Core/Utilities: Forward parameters of StringFormat correctly to fmt::sprintf. --- src/server/shared/Utilities/StringFormat.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/server/shared/Utilities/StringFormat.h b/src/server/shared/Utilities/StringFormat.h index 70d9aefb14d..0e9dde471da 100644 --- a/src/server/shared/Utilities/StringFormat.h +++ b/src/server/shared/Utilities/StringFormat.h @@ -23,11 +23,11 @@ namespace Trinity { - //! Default TC string format function - template - inline std::string StringFormat(const char* fmt, Args const&... args) + /// Default TC string format function. + template + inline std::string StringFormat(Format&& fmt, Args&&... args) { - return fmt::sprintf(fmt, args...); + return fmt::sprintf(std::forward(fmt), std::forward(args)...); } } -- cgit v1.2.3