From 6360c8cdc9a0168d977fb8f5db0ffecf5d3e24bd Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 6 Jun 2017 07:10:06 +0000 Subject: [PATCH] Core: Fixed to compile git-svn-id: svn://ultimatepp.org/upp/trunk@11141 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Utf.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uppsrc/Core/Utf.hpp b/uppsrc/Core/Utf.hpp index 899f3785e..efe158db3 100644 --- a/uppsrc/Core/Utf.hpp +++ b/uppsrc/Core/Utf.hpp @@ -1,5 +1,5 @@ template -force_inline bool ToUtf8_(Target &t, dword codepoint) +force_inline bool ToUtf8_(Target t, dword codepoint) { if(codepoint < 0x80) t((char)codepoint); @@ -30,7 +30,7 @@ force_inline bool ToUtf8_(Target &t, dword codepoint) } template -force_inline bool FromUtf8_(Target& t, const char *_s, size_t len) +force_inline bool FromUtf8_(Target t, const char *_s, size_t len) { bool ok = true; const byte *s = (const byte *)_s; @@ -77,7 +77,7 @@ force_inline bool FromUtf8_(Target& t, const char *_s, size_t len) } template -force_inline bool ToUtf16_(Target &t, size_t codepoint) +force_inline bool ToUtf16_(Target t, size_t codepoint) { if(codepoint < 0x10000) t((wchar)codepoint); @@ -93,7 +93,7 @@ force_inline bool ToUtf16_(Target &t, size_t codepoint) } template -force_inline void FromUtf16_(Target& t, const wchar *s, size_t len) +force_inline void FromUtf16_(Target t, const wchar *s, size_t len) { const wchar *lim = s + len; while(s < lim) {