add missing const on private member

REVIEW: 127549
This commit is contained in:
David Edmundson 2016-04-03 23:00:59 +01:00 committed by David Edmundson
parent e80cc04036
commit ca98250d0c
2 changed files with 4 additions and 4 deletions

View File

@ -64,10 +64,10 @@ public:
~SvgPrivate(); ~SvgPrivate();
//This function is meant for the rects cache //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 //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); bool setImagePath(const QString &imagePath);

View File

@ -160,7 +160,7 @@ SvgPrivate::~SvgPrivate()
} }
//This function is meant for the rects cache //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) { if (size.isValid() && size != naturalSize) {
return CACHE_ID_WITH_SIZE(size, elementId, devicePixelRatio); 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 //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); return CACHE_ID_WITH_SIZE(size, path, devicePixelRatio) % QLSEP % QString::number(colorGroup);
} }