From 47c3ddc09f8f378a25f480f85e2b4706f6fc67b6 Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Thu, 28 Nov 2019 10:34:53 +0300 Subject: [PATCH] Mac build --- profiler_gui/graphics_scrollbar.cpp | 2 +- profiler_gui/tree_widget_loader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();