Commit 4022dda5 authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Clear build of all 'unused parameter' build warnings.

Gotta clean up from time to time :)

Differential Revision: https://phabricator.kde.org/D20271
parent 4636c73d
......@@ -564,7 +564,7 @@ KisPaintDeviceSP prepareUniformPaintDevice(int pixelsNumber, bool horizontal)
return dev;
}
void prepareUniformPixels(quint8 r[], quint8 a[], int pixelsNumber, bool horizontal)
void prepareUniformPixels(quint8 r[], quint8 a[], int pixelsNumber, bool /*horizontal*/)
{
for (int i = 0; i < pixelsNumber; i++) {
......
......@@ -258,7 +258,7 @@ bool KoQuaZipStore::closeRead()
return true;
}
bool KoQuaZipStore::enterRelativeDirectory(const QString &path)
bool KoQuaZipStore::enterRelativeDirectory(const QString & /*path*/)
{
return true;
}
......
......@@ -136,7 +136,7 @@ bool KisColorSelectorComponent::containsPointInComponentCoords(int x, int y) con
return false;
}
bool KisColorSelectorComponent::allowsColorSelectionAtPoint(const QPoint &pt) const
bool KisColorSelectorComponent::allowsColorSelectionAtPoint(const QPoint & /*pt*/) const
{
return true;
}
......
......@@ -96,7 +96,7 @@ protected:
/// a subclass can implement this method to note that the point, although it is in
/// containsPointInComponentCoords area, still cannot be selected as a color (e.g.
/// it is masked out). Default implementation always returns true.
virtual bool allowsColorSelectionAtPoint(const QPoint &pt) const;
virtual bool allowsColorSelectionAtPoint(const QPoint &) const;
// Workaround for Bug 287001
void setLastMousePosition(int x, int y);
......
......@@ -59,6 +59,8 @@ KisGLImageWidget::KisGLImageWidget(KisSurfaceColorSpace colorSpace,
: QOpenGLWidget(parent),
m_texture(QOpenGLTexture::Target2D)
{
Q_UNUSED(colorSpace)
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
setTextureFormat(GL_RGBA16F);
#endif
......@@ -183,9 +185,9 @@ void KisGLImageWidget::updateVerticesBuffer(const QRect &rect)
void KisGLImageWidget::paintGL()
{
const QColor bgColor = palette().background().color();
// TODO: fix conversion to the destination surface space
//glClearColor(bgColor.redF(), bgColor.greenF(), bgColor.blueF(), 1.0f);
// Fill with bright color as as default for debugging purposes
// glClearColor(bgColor.redF(), bgColor.greenF(), bgColor.blueF(), 1.0f);
glClearColor(0.3, 0.2, 0.8, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
......
......@@ -264,8 +264,8 @@ void KisSmallColorWidget::slotUpdatePalettes()
namespace {
struct FillHPolicy {
static inline void getRGB(qreal hue, float xPortionCoeff, float yPortionCoeff,
int x, int y, float *r, float *g, float *b) {
static inline void getRGB(qreal /*hue*/, float xPortionCoeff, float /*yPortionCoeff*/,
int x, int /*y*/, float *r, float *g, float *b) {
HSVToRGB(xPortionCoeff * x * 360.0f, 1.0, 1.0, r, g, b);
}
......
......@@ -48,7 +48,7 @@
#endif
KisGridPaintOp::KisGridPaintOp(const KisPaintOpSettingsSP settings, KisPainter *painter, KisNodeSP node, KisImageSP image)
KisGridPaintOp::KisGridPaintOp(const KisPaintOpSettingsSP settings, KisPainter *painter, KisNodeSP node, KisImageSP /*image*/)
: KisPaintOp(painter)
, m_settings(static_cast<KisGridPaintOpSettings*>(const_cast<KisPaintOpSettings*>(settings.data())))
, m_node(node)
......
......@@ -45,7 +45,7 @@
#include <KoColorSpaceRegistry.h>
KisHatchingPaintOp::KisHatchingPaintOp(const KisPaintOpSettingsSP settings, KisPainter * painter, KisNodeSP node, KisImageSP image)
KisHatchingPaintOp::KisHatchingPaintOp(const KisPaintOpSettingsSP settings, KisPainter * painter, KisNodeSP node, KisImageSP /*image*/)
: KisBrushBasedPaintOp(settings, painter)
{
Q_UNUSED(node);
......
......@@ -36,7 +36,7 @@
#include "kis_gbr_brush.h"
#include "kis_brush_server.h"
KisClipboardBrushWidget::KisClipboardBrushWidget(QWidget *parent, const QString &caption, KisImageWSP image)
KisClipboardBrushWidget::KisClipboardBrushWidget(QWidget *parent, const QString &caption, KisImageWSP /*image*/)
: KisWdgClipboardBrush(parent)
{
setWindowTitle(caption);
......
......@@ -43,7 +43,7 @@
KisRoundMarkerOp::KisRoundMarkerOp(KisPaintOpSettingsSP settings, KisPainter* painter, KisNodeSP node, KisImageSP image)
KisRoundMarkerOp::KisRoundMarkerOp(KisPaintOpSettingsSP settings, KisPainter* painter, KisNodeSP node, KisImageSP /*image*/)
: KisPaintOp(painter)
, m_firstRun(true)
, m_lastRadius(1.0)
......
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