1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-29 18:46:05 +02:00

XMLTagHandler.cpp has fewer dependencies...

... freeing three files from dependency cycles
This commit is contained in:
Paul Licameli
2019-05-12 15:53:01 -04:00
parent 7fc3adb54d
commit 191cd23b54
3 changed files with 12 additions and 9 deletions

View File

@@ -33,8 +33,6 @@
#include <wx/arrstr.h>
#include <wx/filename.h>
#include "../Track.h"
// Length check. Is in part about not supplying malicious strings to file functions.
bool XMLValueChecker::IsGoodString(const wxString & str)
{
@@ -168,7 +166,7 @@ bool XMLValueChecker::IsGoodInt64(const wxString & strInt)
bool XMLValueChecker::IsValidChannel(const int nValue)
{
return (nValue >= Track::LeftChannel) && (nValue <= Track::MonoChannel);
return (nValue >= LeftChannel) && (nValue <= MonoChannel);
}
#ifdef USE_MIDI