diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-09-18 19:25:32 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-09-18 19:25:32 (GMT) |
commit | db36de70fc9090e26c22ab288492407becb3a95e (patch) | |
tree | b25e22f178d0e6d1ebb7e74f2348e9811a2f5394 /src/dot.cpp | |
parent | 3b98221d43ba62088538ead3aa726f81dd9202f9 (diff) | |
download | Doxygen-db36de70fc9090e26c22ab288492407becb3a95e.zip Doxygen-db36de70fc9090e26c22ab288492407becb3a95e.tar.gz Doxygen-db36de70fc9090e26c22ab288492407becb3a95e.tar.bz2 |
Release-1.4.4-20050918
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/dot.cpp b/src/dot.cpp index c501a39..a304788 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -199,7 +199,7 @@ static bool convertMapFile(QTextStream &t,const char *mapName, return TRUE; } -static QArray<int> * s_newNumber = new QArray<int>(); +static QArray<int> s_newNumber; static int s_max_newNumber=0; inline int reNumberNode(int number, bool doReNumbering) @@ -210,7 +210,7 @@ inline int reNumberNode(int number, bool doReNumbering) } else { - int s = s_newNumber->size(); + int s = s_newNumber.size(); if (number>=s) { int ns=0; @@ -219,17 +219,17 @@ inline int reNumberNode(int number, bool doReNumbering) { ns = number * 3 / 2 + 5; } - s_newNumber->resize(ns); + s_newNumber.resize(ns); for (int i=s;i<ns;i++) // clear new part of the array { - s_newNumber->at(i)=0; + s_newNumber.at(i)=0; } } - int i = s_newNumber->at(number); + int i = s_newNumber.at(number); if (i == 0) // not yet mapped { i = ++s_max_newNumber; // start from 1 - s_newNumber->at(number) = i; + s_newNumber.at(number) = i; } return i; } @@ -238,7 +238,7 @@ inline int reNumberNode(int number, bool doReNumbering) static void resetReNumbering() { s_max_newNumber=0; - s_newNumber->resize(s_max_newNumber); + s_newNumber.resize(s_max_newNumber); } static bool readBoundingBoxDot(const char *fileName,int *width,int *height) |