diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2005-09-18 19:25:32 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2005-09-18 19:25:32 (GMT) |
commit | ba7233b1be8545e619d80a62dd274521392fbe1f (patch) | |
tree | b25e22f178d0e6d1ebb7e74f2348e9811a2f5394 /src/dot.cpp | |
parent | 143b39e71a45892c2b8e8bf22f5d448b441bf36a (diff) | |
download | Doxygen-ba7233b1be8545e619d80a62dd274521392fbe1f.zip Doxygen-ba7233b1be8545e619d80a62dd274521392fbe1f.tar.gz Doxygen-ba7233b1be8545e619d80a62dd274521392fbe1f.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) |