From 560a19e6f727e835e556130c51b186dc3a8ba390 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Thu, 29 Oct 2020 11:17:18 +0800 Subject: [PATCH] Fix build --- nel/src/gui/view_text.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nel/src/gui/view_text.cpp b/nel/src/gui/view_text.cpp index 4f0b71c60..acb898d12 100644 --- a/nel/src/gui/view_text.cpp +++ b/nel/src/gui/view_text.cpp @@ -119,9 +119,11 @@ namespace NLGUI // - "_" that should be the character with the lowest part // - A with an accent for the highest part // https://www.compart.com/en/unicode/U+00C4 - _FontSizingChars = { (u32char)'_', 0x000000C4 }; + static const u32char chars[] = { (u32char)'_', 0x000000C4, 0 }; + _FontSizingChars = chars; // fallback if SizingChars are not supported by font - _FontSizingFallback = { (u32char)'|' }; + static const u32char fallback[] = { (u32char)'|', 0 }; + _FontSizingFallback = fallback; computeFontSize (); } @@ -954,13 +956,15 @@ namespace NLGUI } // "_Ä" lowest/highest chars (underscore, A+diaeresis) - _FontSizingChars = { (u32char)'_', 0x000000C4 }; + static const u32char chars[] = { (u32char)'_', 0x000000C4, 0 }; + _FontSizingChars = chars; prop = (char*) xmlGetProp( cur, (xmlChar*)"sizing_chars" ); if (prop) _FontSizingChars = CUtfStringView((const char*)prop).toUtf32(); // fallback if SizingChars are not supported by font - _FontSizingFallback = { (u32char)'|' }; + static const u32char fallback[] = { (u32char)'|', 0 }; + _FontSizingFallback = fallback; prop = (char*) xmlGetProp( cur, (xmlChar*)"sizing_fallback" ); if (prop) _FontSizingFallback = CUtfStringView((const char*)prop).toUtf32();