summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns/utils
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-19 12:02:10 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-21 13:21:22 (GMT)
commit4278109e1f6cca83e687977db55b193ef4f7fcd7 (patch)
tree297e33d75c5c362a6d5723d46a8fbcc0336554d0 /src/xmlpatterns/utils
parent9025b909da8e52c700b0e0ac2f62bf441233c8c5 (diff)
downloadQt-4278109e1f6cca83e687977db55b193ef4f7fcd7.zip
Qt-4278109e1f6cca83e687977db55b193ef4f7fcd7.tar.gz
Qt-4278109e1f6cca83e687977db55b193ef4f7fcd7.tar.bz2
Fix compilation with xlC 7: the compiler doesn't find statics in template expansions.
parser/qmaintainingreader.cpp", line 175.40: 1540-0274 (S) The name lookup for "formatKeyword" did not find a declaration. parser/qmaintainingreader.cpp", line 175.40: 1540-1292 (I) Static declarations are not considered for a function call if the function is not qualified. Reviewed-By: Peter Hartmann Reviewed-By: Frans Englich
Diffstat (limited to 'src/xmlpatterns/utils')
-rw-r--r--src/xmlpatterns/utils/qpatternistlocale_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmlpatterns/utils/qpatternistlocale_p.h b/src/xmlpatterns/utils/qpatternistlocale_p.h
index dc287bd..d8288c7 100644
--- a/src/xmlpatterns/utils/qpatternistlocale_p.h
+++ b/src/xmlpatterns/utils/qpatternistlocale_p.h
@@ -93,7 +93,8 @@ namespace QPatternist
Q_DISABLE_COPY(QtXmlPatterns)
};
- static inline QString formatKeyword(const QString &keyword)
+ // don't make this function static, otherwise xlC 7 cannot find it
+ inline QString formatKeyword(const QString &keyword)
{
return QLatin1String("<span class='XQuery-keyword'>") +
escape(keyword) +