diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-01-22 00:13:42 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-01-22 00:13:42 -0800 |
commit | 21208dbbe2608ae45b8c4a50d83e353880dc491f (patch) | |
tree | d22a79be5bc9aa110dd0051e55a8613a80e777b4 /tools | |
parent | 14c27f8650c090a4bab4ab4156f335c762ab228a (diff) | |
download | srec-21208dbbe2608ae45b8c4a50d83e353880dc491f.tar.gz |
auto import from //branches/cupcake/...@127436
Diffstat (limited to 'tools')
-rw-r--r-- | tools/grxmlcompile/grph.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tools/grxmlcompile/grph.h b/tools/grxmlcompile/grph.h index 5478728..a66f1d2 100644 --- a/tools/grxmlcompile/grph.h +++ b/tools/grxmlcompile/grph.h @@ -23,22 +23,21 @@ class Graph { public: - Graph (char *name) + Graph (const char *name) { int count= strlen(name); title= new char [count+1]; strcpy (title, name); numSubGraph= 0; - return; + subGraph= 0; + subIndex= 0; }; ~Graph() { - delete [] subGraph; - delete [] subIndex; - if (title) { - delete [] title; - } + delete [] subGraph; + delete [] subIndex; + delete [] title; } int addSubGraph (SubGraph *subGraph); @@ -60,12 +59,12 @@ public: void ExpandRules (SubGraph *subg); +private: + int numSubGraph; SubGraph **subGraph; int *subIndex; -private: - int getSubGraphIndex (int subId); char *title; |