commit 5f88639a9b191731fd7a7ac0d82fd0a48ed48e38 Author: Ilya Kurdyukov Date: Thu Dec 22 15:45:54 2022 +0300 [e2k] lcc ftbfs workaround (mcst#7731) diff --git a/plasma-framework/src/plasma/framesvg.cpp b/plasma-framework/src/plasma/framesvg.cpp index 96013f72c..9c39068b5 100644 --- a/plasma-framework/src/plasma/framesvg.cpp +++ b/plasma-framework/src/plasma/framesvg.cpp @@ -850,7 +850,12 @@ void FrameSvgPrivate::updateSizes(FrameData *frame) const // converting that to a QString temporary for the replace operation. // Additionally, we use a template parameter to provide us the compile-time // length of the literal so we don't need to calculate that. +#ifdef __EDG__ + auto createName = [&nameBuffer, offset](const char16_t name[]) { + std::size_t length = std::char_traits::length(name) + 1; +#else auto createName = [&nameBuffer, offset](const char16_t(&name)[length]) { +#endif nameBuffer.replace(offset, length - 1, reinterpret_cast(name), length); return QStringView(nameBuffer).mid(0, offset + length - 1); };