diff --git a/thirdparty/beatroot/BeatTracker.cpp b/thirdparty/beatroot/BeatTracker.cpp index f7d041e62fc1f..98608771fc64b 100644 --- a/thirdparty/beatroot/BeatTracker.cpp +++ b/thirdparty/beatroot/BeatTracker.cpp @@ -29,7 +29,7 @@ std::vector beatTrack(const AgentParameters ¶ms, int count = 0; double beatTime = -1; if (!beats.empty()) { - count = beats.size() - 1; + count = static_cast(beats.size()) - 1; EventList::const_iterator itr = beats.end(); --itr; beatTime = itr->time; diff --git a/thirdparty/rtf2html/fmt_opts.cpp b/thirdparty/rtf2html/fmt_opts.cpp index 08f80567a579c..d9820c58f02d9 100644 --- a/thirdparty/rtf2html/fmt_opts.cpp +++ b/thirdparty/rtf2html/fmt_opts.cpp @@ -63,7 +63,7 @@ std::string formatting_options::get_style_id(const std::string &style) strmap::iterator i_style = styles.find(style); if (i_style == styles.end()) { - i_style = styles.insert(strmap::value_type(style, std::string("cls") + from_int(styles.size()))).first; + i_style = styles.insert(strmap::value_type(style, std::string("cls") + from_int(static_cast(styles.size())))).first; } return i_style->second; } diff --git a/thirdparty/rtf2html/rtf2html.cpp b/thirdparty/rtf2html/rtf2html.cpp index a494c76ef2c90..71de9722efad5 100644 --- a/thirdparty/rtf2html/rtf2html.cpp +++ b/thirdparty/rtf2html/rtf2html.cpp @@ -44,8 +44,6 @@ #include "rtf_keyword.h" #include "fmt_opts.h" #include -#include -#include #include QString rtf2html(const QString& iString) @@ -554,8 +552,8 @@ QString rtf2html(const QString& iString) } } - QString qTitle(QString::fromUtf8(title.data(), title.size())); - QString qHtml(QString::fromUtf8(html.data(), html.size())); + QString qTitle(QString::fromUtf8(title.data(), static_cast(title.size()))); + QString qHtml(QString::fromUtf8(html.data(), static_cast(html.size()))); oString = QString("