minor cleanup

This commit is contained in:
gabime 2023-09-09 13:32:44 +03:00
parent a98d3ab0c7
commit d109e1dcd0

View File

@ -164,9 +164,8 @@ protected:
const string_view_t str = string_view_t(formatted.data(), formatted.size());
// apply the color to the color range in the formatted message.
QString payload;
int color_range_start, color_range_end;
color_range_start = static_cast<int>(msg.color_range_start);
color_range_end = static_cast<int>(msg.color_range_end);
int color_range_start = static_cast<int>(msg.color_range_start);
int color_range_end = static_cast<int>(msg.color_range_end);
if (is_utf8_)
{
payload = QString::fromUtf8(str.data(), static_cast<int>(str.size()));