From 472591fbf8ad7268360705910d83ca48aba1e1e2 Mon Sep 17 00:00:00 2001 From: peri4 Date: Thu, 6 Jul 2023 20:10:17 +0300 Subject: [PATCH] new PIP --- libs/core/cdutils_core.cpp | 2 +- libs/core/cdutils_parser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/core/cdutils_core.cpp b/libs/core/cdutils_core.cpp index d397862..e51f6cb 100644 --- a/libs/core/cdutils_core.cpp +++ b/libs/core/cdutils_core.cpp @@ -387,7 +387,7 @@ void CDCore::xTimerTick() { void CDCore::piCoutFinished(int id, PIString * buffer) { if (!buffer || !(id == 1)) return; - PIString sp = buffer->takeRange("[", "]"); + PIString sp = buffer->takeRange('[', ']'); PIDeque p = CDCore::stringToPath(sp); sendMessage(m_[p], Log, *buffer); delete buffer; diff --git a/libs/core/cdutils_parser.cpp b/libs/core/cdutils_parser.cpp index fb8ee5b..80bcc14 100644 --- a/libs/core/cdutils_parser.cpp +++ b/libs/core/cdutils_parser.cpp @@ -95,7 +95,7 @@ CDSection CDParser::parse(PIIODevice * d, int cdsection_type) { content = PIString::fromUTF8((const char *)c.data()); } if (PIStringAscii(d->className()) == PIStringAscii("PIIOString")) content = *(((PIIOString *)d)->string()); - if (PIStringAscii(d->className()) == PIStringAscii("PIIOByteArray")) content = PIString(*(((PIIOByteArray *)d)->byteArray())); + if (PIStringAscii(d->className()) == PIStringAscii("PIIOByteArray")) content = PIString::fromUTF8(*(((PIIOByteArray *)d)->byteArray())); PIIOString ios(&content); // int phase = 0; int cind = -1;