1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-14 17:14:07 +01:00

Remove wxArray(Int|Long|Double) except where wxWidgets fns need it

This commit is contained in:
Paul Licameli
2018-02-02 14:49:46 -05:00
parent 080dd34e61
commit 8be1e8fdad
35 changed files with 214 additions and 212 deletions

View File

@@ -68,7 +68,7 @@ XMLWriter::XMLWriter()
{
mDepth = 0;
mInTag = false;
mHasKids.Add(false);
mHasKids.push_back(false);
}
XMLWriter::~XMLWriter()
@@ -93,7 +93,7 @@ void XMLWriter::StartTag(const wxString &name)
mTagstack.Insert(name, 0);
mHasKids[0] = true;
mHasKids.Insert(false, 0);
mHasKids.insert(mHasKids.begin(), false);
mDepth++;
mInTag = true;
}
@@ -120,7 +120,7 @@ void XMLWriter::EndTag(const wxString &name)
Write(wxT(">\n"));
}
mTagstack.RemoveAt(0);
mHasKids.RemoveAt(0);
mHasKids.erase(mHasKids.begin());
}
}

View File

@@ -10,6 +10,7 @@
#ifndef __AUDACITY_XML_XML_FILE_WRITER__
#define __AUDACITY_XML_XML_FILE_WRITER__
#include <vector>
#include <wx/arrstr.h>
#include <wx/ffile.h>
@@ -54,7 +55,7 @@ class AUDACITY_DLL_API XMLWriter /* not final */ {
bool mInTag;
int mDepth;
wxArrayString mTagstack;
wxArrayInt mHasKids;
std::vector<int> mHasKids;
};