Update qt_sinks.h: narrow cast msg.color_range_start, msg.color_range_end (#2781)

This commit is contained in:
Jiang Y 2023-06-28 13:32:12 +08:00 committed by GitHub
parent 7990ed8f2b
commit 326f8870c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,8 +167,8 @@ private:
std::move(payload), // text to append std::move(payload), // text to append
default_color_, // default color default_color_, // default color
colors_.at(msg.level), // color to apply colors_.at(msg.level), // color to apply
msg.color_range_start, // color range start static_cast<int>(msg.color_range_start), // color range start
msg.color_range_end}; // color range end static_cast<int>(msg.color_range_end)}; // color range end
QMetaObject::invokeMethod( QMetaObject::invokeMethod(
qt_text_edit_, qt_text_edit_,