add missing const on private member
REVIEW: 127549
This commit is contained in:
parent
e80cc04036
commit
ca98250d0c
@ -64,10 +64,10 @@ public:
|
||||
~SvgPrivate();
|
||||
|
||||
//This function is meant for the rects cache
|
||||
QString cacheId(const QString &elementId);
|
||||
QString cacheId(const QString &elementId) const;
|
||||
|
||||
//This function is meant for the pixmap cache
|
||||
QString cachePath(const QString &path, const QSize &size);
|
||||
QString cachePath(const QString &path, const QSize &size) const;
|
||||
|
||||
bool setImagePath(const QString &imagePath);
|
||||
|
||||
|
@ -160,7 +160,7 @@ SvgPrivate::~SvgPrivate()
|
||||
}
|
||||
|
||||
//This function is meant for the rects cache
|
||||
QString SvgPrivate::cacheId(const QString &elementId)
|
||||
QString SvgPrivate::cacheId(const QString &elementId) const
|
||||
{
|
||||
if (size.isValid() && size != naturalSize) {
|
||||
return CACHE_ID_WITH_SIZE(size, elementId, devicePixelRatio);
|
||||
@ -170,7 +170,7 @@ QString SvgPrivate::cacheId(const QString &elementId)
|
||||
}
|
||||
|
||||
//This function is meant for the pixmap cache
|
||||
QString SvgPrivate::cachePath(const QString &path, const QSize &size)
|
||||
QString SvgPrivate::cachePath(const QString &path, const QSize &size) const
|
||||
{
|
||||
return CACHE_ID_WITH_SIZE(size, path, devicePixelRatio) % QLSEP % QString::number(colorGroup);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user