Skip to content

Commit

Permalink
Update qt_sinks.h: narrow cast msg.color_range_start, msg.color_range…
Browse files Browse the repository at this point in the history
…_end (#2781)
  • Loading branch information
dayfixer authored Jun 28, 2023
1 parent 7990ed8 commit 326f887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/spdlog/sinks/qt_sinks.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ class qt_sink : public base_sink<Mutex>
std::move(payload), // text to append
default_color_, // default color
colors_.at(msg.level), // color to apply
msg.color_range_start, // color range start
msg.color_range_end}; // color range end
static_cast<int>(msg.color_range_start), // color range start
static_cast<int>(msg.color_range_end)}; // color range end

QMetaObject::invokeMethod(
qt_text_edit_,
Expand Down

0 comments on commit 326f887

Please sign in to comment.