Commit 6a25feb2 authored by Thomas Zander's avatar Thomas Zander

At least honor constness

svn path=/trunk/koffice/; revision=740451
parent 86bcd586
......@@ -998,7 +998,7 @@ bool KisPaintDevice::setPixel(qint32 x, qint32 y, const QColor& c, quint8 opaci
bool KisPaintDevice::setPixel(qint32 x, qint32 y, const KoColor& kc)
{
quint8 * pix;
const quint8 * pix;
if (kc.colorSpace() != m_d->colorSpace) {
KoColor kc2 (kc, m_d->colorSpace);
pix = kc2.data();
......
......@@ -241,7 +241,11 @@ const KoColorProfile * KoColor::profile() const
return d->colorSpace->profile();
}
quint8 * KoColor::data() const {
quint8 * KoColor::data() {
return d->data;
}
const quint8 * KoColor::data() const {
return d->data;
}
......
......@@ -101,7 +101,10 @@ public:
void fromQColor(const QColor& c, quint8 opacity) const;
/// For easy memcpy'ing etc.
quint8 * data() const;
quint8 * data();
/// For easy memcpy'ing etc.
const quint8 * data() const;
#ifndef NODEBUG
/// use kDebug calls to print internal info
......
......@@ -101,8 +101,8 @@ class KORESOURCES_EXPORT KoGradientSegment {
RGBColorInterpolationStrategy();
static RGBColorInterpolationStrategy *m_instance;
const KoColorSpace * m_colorSpace;
KoColor buffer;
const KoColorSpace * const m_colorSpace;
mutable KoColor buffer;
mutable KoColor m_start;
mutable KoColor m_end;
};
......@@ -117,7 +117,7 @@ class KORESOURCES_EXPORT KoGradientSegment {
HSVCWColorInterpolationStrategy();
static HSVCWColorInterpolationStrategy *m_instance;
const KoColorSpace * m_colorSpace;
const KoColorSpace * const m_colorSpace;
};
class HSVCCWColorInterpolationStrategy : public ColorInterpolationStrategy {
......@@ -130,7 +130,7 @@ class KORESOURCES_EXPORT KoGradientSegment {
HSVCCWColorInterpolationStrategy();
static HSVCCWColorInterpolationStrategy *m_instance;
const KoColorSpace * m_colorSpace;
const KoColorSpace * const m_colorSpace;
};
class InterpolationStrategy {
......
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