diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-09-07 07:13:59 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-09-07 07:13:59 (GMT) |
commit | 4051e1cfc7f5d8a7017ca4ff7b30de483950a59b (patch) | |
tree | 54bec01d2da3095d5daff4bbe1c78158c9fc441d /tools/qdoc3/node.cpp | |
parent | 8eac2e129a09be59dfe4a370ec0bc30d80e09855 (diff) | |
download | Qt-4051e1cfc7f5d8a7017ca4ff7b30de483950a59b.zip Qt-4051e1cfc7f5d8a7017ca4ff7b30de483950a59b.tar.gz Qt-4051e1cfc7f5d8a7017ca4ff7b30de483950a59b.tar.bz2 |
qdoc: Updated with current dita xml generation code from oslo-staging-1.
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r-- | tools/qdoc3/node.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp index 41f90d5..ce53b86 100644 --- a/tools/qdoc3/node.cpp +++ b/tools/qdoc3/node.cpp @@ -1152,8 +1152,8 @@ QString Parameter::reconstruct(bool value) const if (!p.endsWith(QChar('*')) && !p.endsWith(QChar('&')) && !p.endsWith(QChar(' '))) p += " "; p += nam; - if (value) - p += def; + if (value && !def.isEmpty()) + p += " = " + def; return p; } |