From 3f39a19d4a7b5b8869dfcdcec579c2f90713c9d2 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Fri, 2 Jan 2015 19:00:45 -0800 Subject: [PATCH] No need to duplicate this code. --- Sources/Plasma/CoreLib/plFormat.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sources/Plasma/CoreLib/plFormat.cpp b/Sources/Plasma/CoreLib/plFormat.cpp index 110f9b32..6a67eea5 100644 --- a/Sources/Plasma/CoreLib/plFormat.cpp +++ b/Sources/Plasma/CoreLib/plFormat.cpp @@ -530,9 +530,7 @@ PL_FORMAT_IMPL(const std::string &) PL_FORMAT_IMPL(const std::wstring &) { - plStringBuffer utf8 = plString::FromWchar(value.c_str()).ToUtf8(); - _formatString(format, output, utf8.GetData(), utf8.GetSize(), - plFormat_Private::kAlignLeft); + PL_FORMAT_FORWARD(value.c_str()); } PL_FORMAT_IMPL(bool)