diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-10-23 18:33:19 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-10-23 18:33:19 (GMT) |
commit | 43edc14cd357dcb070402bccc5030507570c22a4 (patch) | |
tree | 05c76a0026b6d1fabe1c3967b041e38b9550f9f7 /src/vhdldocgen.cpp | |
parent | 151876a8321204bd2ec08ec6c4de38ba9fb2d034 (diff) | |
download | Doxygen-43edc14cd357dcb070402bccc5030507570c22a4.zip Doxygen-43edc14cd357dcb070402bccc5030507570c22a4.tar.gz Doxygen-43edc14cd357dcb070402bccc5030507570c22a4.tar.bz2 |
Introduce new optimized string implementation (attempt 2)
Diffstat (limited to 'src/vhdldocgen.cpp')
-rw-r--r-- | src/vhdldocgen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vhdldocgen.cpp b/src/vhdldocgen.cpp index ad95fd1..50127f8 100644 --- a/src/vhdldocgen.cpp +++ b/src/vhdldocgen.cpp @@ -1445,7 +1445,7 @@ bool VhdlDocGen::isNumber(const QCString& s) void VhdlDocGen::formatString(const QCString &s, OutputList& ol,const MemberDef* mdef) { QCString qcs = s; - QCString temp(qcs.length()); + QCString temp; qcs.stripPrefix(":"); qcs.stripPrefix("is"); qcs.stripPrefix("IS"); @@ -1464,7 +1464,7 @@ void VhdlDocGen::formatString(const QCString &s, OutputList& ol,const MemberDef* if (j>0) b=qcs[j-1]; if (c=='"' || c==',' || c=='\''|| c=='(' || c==')' || c==':' || c=='[' || c==']' ) // || (c==':' && b!='=')) // || (c=='=' && b!='>')) { - if (temp.at(index-1) != ' ') + if (temp.length()>=index && temp.at(index-1) != ' ') { temp+=" "; } @@ -2322,6 +2322,7 @@ void VhdlDocGen::writePlainVHDLDeclarations( { SDict<QCString> pack(1009); + pack.setAutoDelete(TRUE); bool first=TRUE; MemberDef *md; |