diff --git a/profiler_gui/graphics_scrollbar.cpp b/profiler_gui/graphics_scrollbar.cpp index acd068e..7d7871d 100644 --- a/profiler_gui/graphics_scrollbar.cpp +++ b/profiler_gui/graphics_scrollbar.cpp @@ -268,7 +268,7 @@ void GraphicsHistogramItem::paintByPtr(QPainter* _painter) } _painter->setPen(profiler_gui::TEXT_COLOR); - const auto eventsCount = m_pProfilerThread->events.size(); + const auto eventsCount = static_cast(m_pProfilerThread->events.size()); const auto blocksCount = m_pProfilerThread->blocks_number - eventsCount; QString durationsStr; diff --git a/profiler_gui/tree_widget_loader.cpp b/profiler_gui/tree_widget_loader.cpp index f658fa8..3e043ea 100644 --- a/profiler_gui/tree_widget_loader.cpp +++ b/profiler_gui/tree_widget_loader.cpp @@ -450,7 +450,7 @@ void TreeWidgetLoader::setTreeInternalTop( "Please, reduce selected area width\n" "or increase maximum count in settings\n" "or change the tree mode." - ).arg(profiler_gui::shortenCountString(_maxCount)) + ).arg(profiler_gui::shortenCountString(static_cast(_maxCount))) .arg(profiler_gui::shortenCountString(total_count)) .arg(profiler_gui::percent(total_count, _maxCount)); setDone();