summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/atom.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-09-08 13:18:09 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-09-08 13:18:09 (GMT)
commit12ac485add4a4c7db5996dcd51400e90ea44ef23 (patch)
treefe66f0be1b404b1afec6492fa406dae9809b34ee /tools/qdoc3/atom.cpp
parent7a3273ebbbff161e84c87de01e448047ffa0f2b5 (diff)
downloadQt-12ac485add4a4c7db5996dcd51400e90ea44ef23.zip
Qt-12ac485add4a4c7db5996dcd51400e90ea44ef23.tar.gz
Qt-12ac485add4a4c7db5996dcd51400e90ea44ef23.tar.bz2
qdoc: Generate xml for more kinds of pages.
Not complete.
Diffstat (limited to 'tools/qdoc3/atom.cpp')
-rw-r--r--tools/qdoc3/atom.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/qdoc3/atom.cpp b/tools/qdoc3/atom.cpp
index 88f44ea..6f1602e 100644
--- a/tools/qdoc3/atom.cpp
+++ b/tools/qdoc3/atom.cpp
@@ -241,25 +241,25 @@ static const struct {
{ 0, 0 }
};
-/*! \fn Atom::Atom( Type type, const QString& string )
+/*! \fn Atom::Atom(Type type, const QString& string)
Constructs an atom (\a type, \a string) outside of any atom list.
*/
-/*! \fn Atom( Atom *prev, Type type, const QString& string )
+/*! \fn Atom(Atom *prev, Type type, const QString& string)
Constructs an atom (\a type, \a string) that follows \a prev in \a
prev's atom list.
*/
-/*! \fn void Atom::appendChar( QChar ch )
+/*! \fn void Atom::appendChar(QChar ch)
Appends \a ch to the string parameter of this atom.
\also string()
*/
-/*! \fn void Atom::appendString( const QString& string )
+/*! \fn void Atom::appendString(const QString& string)
Appends \a string to the string parameter of this atom.
@@ -316,18 +316,18 @@ QString Atom::typeString() const
{
static bool deja = false;
- if ( !deja ) {
+ if (!deja) {
int i = 0;
- while ( atms[i].english != 0 ) {
- if ( atms[i].no != i )
- Location::internalError( tr("atom %1 missing").arg(i) );
+ while (atms[i].english != 0) {
+ if (atms[i].no != i)
+ Location::internalError(tr("atom %1 missing").arg(i));
i++;
}
deja = true;
}
int i = (int) type();
- if ( i < 0 || i > (int) Last )
+ if (i < 0 || i > (int) Last)
return QLatin1String("Invalid");
return QLatin1String(atms[i].english);
}
@@ -346,10 +346,10 @@ QString Atom::typeString() const
void Atom::dump() const
{
QString str = string();
- str.replace( "\\", "\\\\" );
- str.replace( "\"", "\\\"" );
- str.replace( "\n", "\\n" );
- str.replace( QRegExp("[^\x20-\x7e]"), "?" );
+ str.replace("\\", "\\\\");
+ str.replace("\"", "\\\"");
+ str.replace("\n", "\\n");
+ str.replace(QRegExp("[^\x20-\x7e]"), "?");
if (!str.isEmpty())
str = " \"" + str + "\"";
fprintf(stderr,