diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-06 11:30:51 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-06 11:30:51 (GMT) |
commit | b9e86b13679f9714b1b72fbaaa94badbdd1b3ff9 (patch) | |
tree | 7875cebf6389f0396ea8de8784bce80d4517263f /src | |
parent | faaaff5257c105860f58a4ad3df531b36e27627d (diff) | |
parent | 822efb6807d6164304bc454f39c5f739bbe1f8e5 (diff) | |
download | Qt-b9e86b13679f9714b1b72fbaaa94badbdd1b3ff9.zip Qt-b9e86b13679f9714b1b72fbaaa94badbdd1b3ff9.tar.gz Qt-b9e86b13679f9714b1b72fbaaa94badbdd1b3ff9.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
Fix a coding style issue of the GTK style
Sunstudio12.1(5.10): Fix compile errors GTK style and other minor compile errors
Added variable QMAKE_TARGET.arch to qmake to be used with MSVC++
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qgtkstyle_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/styles/qgtkstyle_p.h b/src/gui/styles/qgtkstyle_p.h index 5bb7550..68a04e9 100644 --- a/src/gui/styles/qgtkstyle_p.h +++ b/src/gui/styles/qgtkstyle_p.h @@ -85,9 +85,14 @@ public: int size() const { return m_size; } const char *data() const { return m_data; } +#ifdef __SUNPRO_CC + QHashableLatin1Literal(const char* str) + : m_size(strlen(str)), m_data(str) {} +#else template <int N> QHashableLatin1Literal(const char (&str)[N]) : m_size(N - 1), m_data(str) {} +#endif QHashableLatin1Literal(const QHashableLatin1Literal &other) : m_size(other.m_size), m_data(other.m_data) |