clang-tidy: Apply modernize-avoid-c-arrays everywhere (#6564)
Co-authored-by: Dominic Clark <mrdomclark@gmail.com> Co-authored-by: Hyunjin Song <tteu.ingog@gmail.com>
This commit is contained in:
@@ -143,14 +143,6 @@ private:
|
||||
|
||||
void loadData( const QByteArray & _data, const QString & _sourceFile );
|
||||
|
||||
|
||||
struct LMMS_EXPORT typeDescStruct
|
||||
{
|
||||
Type m_type;
|
||||
QString m_name;
|
||||
} ;
|
||||
static typeDescStruct s_types[TypeCount];
|
||||
|
||||
QString m_fileName; //!< The origin file name or "" if this DataFile didn't originate from a file
|
||||
QDomElement m_content;
|
||||
QDomElement m_head;
|
||||
|
||||
@@ -52,6 +52,7 @@ class InstrumentFunctionNoteStacking : public Model, public JournallingObject
|
||||
|
||||
public:
|
||||
static const int MAX_CHORD_POLYPHONY = 13;
|
||||
static const int NUM_CHORD_TABLES = 95;
|
||||
|
||||
private:
|
||||
using ChordSemiTones = std::array<int8_t, MAX_CHORD_POLYPHONY>;
|
||||
@@ -129,7 +130,7 @@ public:
|
||||
ChordSemiTones m_semiTones;
|
||||
};
|
||||
|
||||
static Init s_initTable[];
|
||||
static std::array<Init, NUM_CHORD_TABLES> s_initTable;
|
||||
|
||||
public:
|
||||
static const ChordTable & getInstance()
|
||||
|
||||
@@ -255,7 +255,7 @@ private:
|
||||
static fftwf_plan s_fftPlan;
|
||||
static fftwf_plan s_ifftPlan;
|
||||
static fftwf_complex * s_specBuf;
|
||||
static float s_sampleBuffer[OscillatorConstants::WAVETABLE_LENGTH];
|
||||
static std::array<float, OscillatorConstants::WAVETABLE_LENGTH> s_sampleBuffer;
|
||||
|
||||
static void generateSawWaveTable(int bands, sample_t* table, int firstBand = 1);
|
||||
static void generateTriangleWaveTable(int bands, sample_t* table, int firstBand = 1);
|
||||
|
||||
@@ -343,7 +343,7 @@ private:
|
||||
static QPixmap * s_toolOpen;
|
||||
static QPixmap* s_toolKnife;
|
||||
|
||||
static PianoRollKeyTypes prKeyOrder[];
|
||||
static std::array<PianoRollKeyTypes, 12> prKeyOrder;
|
||||
|
||||
static TextFloat * s_textFloat;
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
|
||||
static QString getFileExtensionFromFormat( ExportFileFormats fmt );
|
||||
|
||||
static const FileEncodeDevice fileEncodeDevices[];
|
||||
static const std::array<FileEncodeDevice, 5> fileEncodeDevices;
|
||||
|
||||
public slots:
|
||||
void startProcessing();
|
||||
|
||||
Reference in New Issue
Block a user