summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstringbuilder.h
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-06-17 08:30:30 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-06-17 08:34:35 (GMT)
commitcf521799d71861c067a07d30418cf3b3504fbfe9 (patch)
tree18489169852fe4f37abf94981febe0e141e3fe0a /src/corelib/tools/qstringbuilder.h
parent99c5b68d4af7b099f201a7b89c86209df9e9349b (diff)
downloadQt-cf521799d71861c067a07d30418cf3b3504fbfe9.zip
Qt-cf521799d71861c067a07d30418cf3b3504fbfe9.tar.gz
Qt-cf521799d71861c067a07d30418cf3b3504fbfe9.tar.bz2
doc: Fixed several qdoc warnings.
All the qdoc errors are fixed in QStringBuilder, but because the class is a template class and uses strange templates, qdoc gets very confused, and the resulting documentation for QStringBuilder is not complete and accurate. To fix this correctly will require changes to the qdoc program.
Diffstat (limited to 'src/corelib/tools/qstringbuilder.h')
-rw-r--r--src/corelib/tools/qstringbuilder.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/corelib/tools/qstringbuilder.h b/src/corelib/tools/qstringbuilder.h
index c63dc7b..19f14b4 100644
--- a/src/corelib/tools/qstringbuilder.h
+++ b/src/corelib/tools/qstringbuilder.h
@@ -56,11 +56,12 @@ QT_MODULE(Core)
class QLatin1Literal
{
public:
- template <int N>
- QLatin1Literal(const char (&str)[N]) : m_size(N - 1), m_data(str) {}
+ int size() const { return m_size; }
+ const char *data() const { return m_data; }
- inline int size() const { return m_size; }
- inline const char *data() const { return m_data; }
+ template <int N>
+ QLatin1Literal(const char (&str)[N])
+ : m_size(N - 1), m_data(str) {}
private:
const int m_size;