Commit 5122e542 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Prevent some warnings about uninitialized variables

parent 9a7cb4bd
......@@ -105,7 +105,7 @@ private:
qreal m_physicalDpiX;
qreal m_physicalDpiY;
qreal m_devicePixelRatio;
bool m_aspectMode;
bool m_aspectMode {false};
};
......
......@@ -194,7 +194,7 @@ public:
KisSignalCompressor colorChangedCompressor;
KisAcyclicSignalConnector shapeChangedAcyclicConnector;
KisAcyclicSignalConnector resourceManagerAcyclicConnector;
KoFillConfigWidget::StyleButton selectedFillIndex;
KoFillConfigWidget::StyleButton selectedFillIndex {KoFillConfigWidget::None};
QSharedPointer<KoStopGradient> activeGradient;
KisSignalCompressor gradientChangedCompressor;
......
......@@ -170,7 +170,6 @@ public:
active(true),
allowLocalUnitManagement(true),
fillConfigWidget(0),
noSelectionTrackingMode(false),
selectionChangedCompressor(200, KisSignalCompressor::FIRST_ACTIVE)
{
}
......@@ -191,7 +190,7 @@ public:
bool allowLocalUnitManagement;
KoFillConfigWidget *fillConfigWidget;
bool noSelectionTrackingMode;
bool noSelectionTrackingMode {false};
KisAcyclicSignalConnector shapeChangedAcyclicConnector;
KisAcyclicSignalConnector resourceManagerAcyclicConnector;
......@@ -744,7 +743,7 @@ void KoStrokeConfigWidget::selectionChanged()
}
}
const bool lineOptionsVisible = d->fillConfigWidget->selectedFillIndex() != 0;
const bool lineOptionsVisible = (d->fillConfigWidget->selectedFillIndex() != 0);
// This switch statement is to help the tab widget "pages" to be closer to the correct size
// if we don't do this the internal widgets get rendered, then the tab page has to get resized to
......
......@@ -415,6 +415,7 @@ qreal KisColorSelector::getSaturation(int saturationIdx) const
void KisColorSelector::recalculateAreas(quint8 numLightPieces)
{
qreal LIGHT_STRIP_RATIO = 0.075;
if (m_showValueScaleNumbers) {
LIGHT_STRIP_RATIO = 0.25;
}
......
......@@ -181,8 +181,8 @@ private:
quint8 m_defaultHueSteps;
quint8 m_defaultSaturationSteps;
quint8 m_defaultValueScaleSteps;
bool m_showValueScaleNumbers;
bool m_showBgColor;
bool m_showValueScaleNumbers {false};
bool m_showBgColor {true};
bool m_gamutMaskOn;
KoGamutMask* m_currentGamutMask;
......
......@@ -36,7 +36,7 @@ struct GridConfigWidget::Private
KisGridConfig gridConfig;
KisGuidesConfig guidesConfig;
bool guiSignalsBlocked;
bool guiSignalsBlocked {false};
};
GridConfigWidget::GridConfigWidget(QWidget *parent) :
......@@ -65,9 +65,6 @@ GridConfigWidget::GridConfigWidget(QWidget *parent) :
connect(ui->gridTypeCombobox, SIGNAL(currentIndexChanged(int)), SLOT(slotGridTypeChanged()));
m_isGridEnabled = false;
setGridConfig(m_d->gridConfig);
setGuidesConfig(m_d->guidesConfig);
......
......@@ -75,9 +75,9 @@ private:
struct Private;
const QScopedPointer<Private> m_d;
bool m_isGridEnabled;
bool m_isGridEnabled {false};
bool m_isIsometricGridEnabled = true;
bool m_isIsometricGridEnabled {true};
};
#endif // GRID_CONFIG_WIDGET_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment