forked from qt-creator/qt-creator
Help: Fix some clang warnings
Change-Id: I6e65e0819333d7d5e7f697718690bc8d80b1b189 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
using namespace Help::Internal;
|
using namespace Help::Internal;
|
||||||
|
|
||||||
CentralWidget *gStaticCentralWidget = 0;
|
static CentralWidget *gStaticCentralWidget = 0;
|
||||||
|
|
||||||
// -- CentralWidget
|
// -- CentralWidget
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ CentralWidget::CentralWidget(const Core::Context &context, QWidget *parent)
|
|||||||
CentralWidget::~CentralWidget()
|
CentralWidget::~CentralWidget()
|
||||||
{
|
{
|
||||||
// TODO: this shouldn't be done here
|
// TODO: this shouldn't be done here
|
||||||
QList<float> zoomFactors;
|
QList<qreal> zoomFactors;
|
||||||
QStringList currentPages;
|
QStringList currentPages;
|
||||||
for (int i = 0; i < viewerCount(); ++i) {
|
for (int i = 0; i < viewerCount(); ++i) {
|
||||||
const HelpViewer * const viewer = viewerAt(i);
|
const HelpViewer * const viewer = viewerAt(i);
|
||||||
|
@@ -263,7 +263,7 @@ QList<float> LocalHelpManager::lastShownPagesZoom()
|
|||||||
return Utils::transform(stringValues, [](const QString &str) { return str.toFloat(); });
|
return Utils::transform(stringValues, [](const QString &str) { return str.toFloat(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocalHelpManager::setLastShownPagesZoom(const QList<float> &zoom)
|
void LocalHelpManager::setLastShownPagesZoom(const QList<qreal> &zoom)
|
||||||
{
|
{
|
||||||
const QStringList stringValues = Utils::transform(zoom,
|
const QStringList stringValues = Utils::transform(zoom,
|
||||||
[](float z) { return QString::number(z); });
|
[](float z) { return QString::number(z); });
|
||||||
|
@@ -82,7 +82,7 @@ public:
|
|||||||
static void setLastShownPages(const QStringList &pages);
|
static void setLastShownPages(const QStringList &pages);
|
||||||
|
|
||||||
static QList<float> lastShownPagesZoom();
|
static QList<float> lastShownPagesZoom();
|
||||||
static void setLastShownPagesZoom(const QList<float> &zoom);
|
static void setLastShownPagesZoom(const QList<qreal> &zoom);
|
||||||
|
|
||||||
static int lastSelectedTab();
|
static int lastSelectedTab();
|
||||||
static void setLastSelectedTab(int index);
|
static void setLastSelectedTab(int index);
|
||||||
|
Reference in New Issue
Block a user