From a92f14160db1e997f982236fcf10dc729f6b56ae Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 13 Oct 2010 14:27:08 +0000 Subject: [PATCH] faster svn path=/trunk/KDE/kdelibs/; revision=1185501 --- framesvg.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/framesvg.cpp b/framesvg.cpp index cae19d103..0978c8615 100644 --- a/framesvg.cpp +++ b/framesvg.cpp @@ -325,7 +325,7 @@ void FrameSvg::resizeFrame(const QSizeF &size) d->updateSizes(); fd->frameSize = size.toSize(); - // we know it isn't in s_sharedFrames do the check above, so insert it now + // we know it isn't in s_sharedFrames due to the check above, so insert it now FrameSvgPrivate::s_sharedFrames.insert(newKey, fd); } @@ -873,8 +873,9 @@ void FrameSvgPrivate::generateFrameBackground(FrameData *frame) QString FrameSvgPrivate::cacheId(FrameData *frame, const QString &prefixToSave) const { const QSize size = frameSize(frame).toSize(); - const QChar s('_'); - return QString::number(frame->enabledBorders) % s % QString::number(size.width()) % s % QString::number(size.height()) % s % prefixToSave % s % q->imagePath(); + const QLatin1Char s('_'); + const QLatin1Char b(frame->enabledBorders ? '1' : '0'); + return b % s % QString::number(size.width()) % s % QString::number(size.height()) % s % prefixToSave % s % q->imagePath(); } void FrameSvgPrivate::cacheFrame(const QString &prefixToSave, const QPixmap &background, const QPixmap &overlay)