diff options
author | Harald Fernengel <harald.fernengel@nokia.com> | 2010-01-29 15:06:06 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-03-03 14:16:32 (GMT) |
commit | 5d1735d6cf1820107145e7fdfe41ac502d0020f9 (patch) | |
tree | 0af3444064421831a375e9feebe689b2a912a3bd /src/gui/styles/qgtkpainter.cpp | |
parent | a1b0dba9971ef88dc1e079d1ea49230a4dd3c514 (diff) | |
download | Qt-5d1735d6cf1820107145e7fdfe41ac502d0020f9.zip Qt-5d1735d6cf1820107145e7fdfe41ac502d0020f9.tar.gz Qt-5d1735d6cf1820107145e7fdfe41ac502d0020f9.tar.bz2 |
Optimize QGtkStyle
Use latin1 literals instead of QString to prevent
one malloc/memcpy/free per rendered table cell.
Reviewed-By: Robert Griebl
Diffstat (limited to 'src/gui/styles/qgtkpainter.cpp')
-rw-r--r-- | src/gui/styles/qgtkpainter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qgtkpainter.cpp b/src/gui/styles/qgtkpainter.cpp index 6cc7455..1f68f2f 100644 --- a/src/gui/styles/qgtkpainter.cpp +++ b/src/gui/styles/qgtkpainter.cpp @@ -142,7 +142,7 @@ QPixmap QGtkPainter::renderTheme(uchar *bdata, uchar *wdata, const QRect &rect) } QGtkPainter::QGtkPainter(QPainter *_painter) - : m_window(QGtkStylePrivate::gtkWidget(QLatin1String("GtkWindow"))) + : m_window(QGtkStylePrivate::gtkWidget("GtkWindow")) , m_painter(_painter) , m_alpha(true) , m_hflipped(false) |