diff options
Diffstat (limited to 'src/qdoc/doc.cpp')
-rw-r--r-- | src/qdoc/doc.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qdoc/doc.cpp b/src/qdoc/doc.cpp index cfe28ab9f..b8fd5f931 100644 --- a/src/qdoc/doc.cpp +++ b/src/qdoc/doc.cpp @@ -526,7 +526,6 @@ private: QString pendingParaString; int braceDepth; - int minIndent; Doc::Sections currentSection; QMap<QString, Location> targetMap_; QMap<int, QString> pendingFormats; @@ -575,7 +574,6 @@ void DocParser::parse(const QString& source, pendingParaRightType = Atom::Nop; braceDepth = 0; - minIndent = INT_MAX; currentSection = Doc::NoSection; openedCommands.push(CMD_OMIT); quoter.reset(); @@ -2544,9 +2542,7 @@ QString DocParser::getCode(int cmd, CodeMarker *marker) { QString code = untabifyEtc(getUntilEnd(cmd)); int indent = indentLevel(code); - if (indent < minIndent) - minIndent = indent; - code = unindent(minIndent, code); + code = unindent(indent, code); if (!marker) marker = CodeMarker::markerForCode(code); return marker->markedUpCode(code, 0, location()); |