summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-12-18 18:08:45 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2009-12-23 13:27:29 (GMT)
commit0e03f6bbfd003d354c603a1a89b961e5f0d3769c (patch)
tree7fc313f2dea6e081e1753bacd0e6d58701b31021
parent51b042f821f593808290e049e49f2f8bcd611fb0 (diff)
downloadQt-0e03f6bbfd003d354c603a1a89b961e5f0d3769c.zip
Qt-0e03f6bbfd003d354c603a1a89b961e5f0d3769c.tar.gz
Qt-0e03f6bbfd003d354c603a1a89b961e5f0d3769c.tar.bz2
Get rid of no_cast_from_ascii warning
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
index 4744eb6..8126fca 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
@@ -1063,7 +1063,7 @@ static inline bool setIntOption(const QStringList &arguments, const QString &var
static inline QColor colorFromName(const QString &name)
{
- QRegExp rx("#([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])");
+ QRegExp rx(QLatin1String("#([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])"));
rx.setCaseSensitivity(Qt::CaseInsensitive);
if (rx.exactMatch(name)) {
Q_ASSERT(rx.captureCount() == 4);