Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix compiler warnings: unused-private-field
Freya Lupen13012b5620b7
diff --git a/libs/image/commands/KisBatchUpdateLayerModificationCommand.h b/libs/image/commands/KisBatchUpdateLayerModificationCommand.hindex cde762b228..c7a79c4b15 100644--- a/libs/image/commands/KisBatchUpdateLayerModificationCommand.h+++ b/libs/image/commands/KisBatchUpdateLayerModificationCommand.h@@ -46,7 +46,6 @@ public:private:KisImageWSP m_image;RecipeSP m_recipe;- KisCommandUtils::FlipFlopCommand::State m_state;};#endif // KISBATCHUPDATELAYERMODIFICATIONCOMMAND_Hdiff --git a/libs/ui/widgets/kis_preset_chooser.cpp b/libs/ui/widgets/kis_preset_chooser.cppindex 37b1089a38..07366c982c 100644--- a/libs/ui/widgets/kis_preset_chooser.cpp+++ b/libs/ui/widgets/kis_preset_chooser.cpp@@ -43,11 +43,10 @@class KisPresetDelegate : public QAbstractItemDelegate{public:- KisPresetDelegate(KisResourceMetaDataModel *metaDataModel, QObject * parent = 0)+ KisPresetDelegate(QObject * parent = 0): QAbstractItemDelegate(parent), m_showText(false)- , m_useDirtyPresets(false)- , m_metaDataModel(metaDataModel) {}+ , m_useDirtyPresets(false) {}~KisPresetDelegate() override {}@@ -70,7 +69,6 @@ public:private:bool m_showText;bool m_useDirtyPresets;- KisResourceMetaDataModel *m_metaDataModel;};void KisPresetDelegate::paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const@@ -178,7 +176,7 @@ KisPresetChooser::KisPresetChooser(QWidget *parent)m_chooser = new KisResourceItemChooser(ResourceType::PaintOpPresets, false, this);m_chooser->setRowHeight(50);- m_delegate = new KisPresetDelegate(KisResourceModelProvider::resourceMetadataModel(), this);+ m_delegate = new KisPresetDelegate(this);m_chooser->setItemDelegate(m_delegate);m_chooser->setSynced(true);m_chooser->showImportExportBtns(false);diff --git a/plugins/dockers/channeldocker/channelmodel.cpp b/plugins/dockers/channeldocker/channelmodel.cppindex 49bedf8a78..6ee441ca92 100644--- a/plugins/dockers/channeldocker/channelmodel.cpp+++ b/plugins/dockers/channeldocker/channelmodel.cpp@@ -22,7 +22,6 @@ChannelModel::ChannelModel(QObject* parent):QAbstractTableModel(parent),m_canvas(nullptr),- m_oversampleRatio(2),m_channelCount(0){setThumbnailSizeLimit(QSize(64, 64));diff --git a/plugins/dockers/channeldocker/channelmodel.h b/plugins/dockers/channeldocker/channelmodel.hindex 3b84bc62d1..6b2243e2f8 100644--- a/plugins/dockers/channeldocker/channelmodel.h+++ b/plugins/dockers/channeldocker/channelmodel.h@@ -53,7 +53,6 @@ private:QVector<QImage> m_thumbnails;QSize m_thumbnailSizeLimit;- int m_oversampleRatio;KisSignalAutoConnectionsStore m_canvasConnections;int m_channelCount;};