mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-14 17:14:07 +01:00
XMLTagHandler.cpp has fewer dependencies...
... freeing three files from dependency cycles
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -63,6 +63,12 @@ public:
|
||||
static bool IsGoodInt64(const wxString & strInt);
|
||||
static bool IsGoodIntForRange(const wxString & strInt, const wxString & strMAXABS);
|
||||
|
||||
enum ChannelType
|
||||
{
|
||||
LeftChannel = 0,
|
||||
RightChannel = 1,
|
||||
MonoChannel = 2
|
||||
};
|
||||
static bool IsValidChannel(const int nValue);
|
||||
#ifdef USE_MIDI
|
||||
static bool IsValidVisibleChannels(const int nValue);
|
||||
|
||||
Reference in New Issue
Block a user