clang-tidy: Apply modernize-use-using everywhere (#6453)

This commit is contained in:
saker
2022-07-07 04:54:34 -04:00
committed by GitHub
parent a6e6afb0ee
commit b451e40b51
77 changed files with 168 additions and 222 deletions

View File

@@ -64,9 +64,7 @@
namespace lmms
{
typedef LocklessList<PlayHandle *>::Element LocklessListElement;
using LocklessListElement = LocklessList<PlayHandle*>::Element;
static thread_local bool s_renderingThread;

View File

@@ -30,7 +30,7 @@
namespace lmms
{
WaveMipMap BandLimitedWave::s_waveforms[4] = { };
std::array<WaveMipMap, BandLimitedWave::Waveforms::NumBLWaveforms> BandLimitedWave::s_waveforms = { };
bool BandLimitedWave::s_wavesGenerated = false;
QString BandLimitedWave::s_wavetableDir = "";

View File

@@ -234,7 +234,7 @@ void Oscillator::generateWaveTables()
// Generate tables for simple shaped (constructed by summing sine waves).
// Start from the table that contains the least number of bands, and re-use each table in the following
// iteration, adding more bands in each step and avoiding repeated computation of earlier bands.
typedef void (*generator_t)(int, sample_t*, int);
using generator_t = void (*)(int, sample_t*, int);
auto simpleGen = [](WaveShapes shape, generator_t generator)
{
const int shapeID = shape - FirstWaveShapeTable;

View File

@@ -538,7 +538,7 @@ DataFile ClipView::createClipDataFiles(
DataFile dataFile( DataFile::DragNDropData );
QDomElement clipParent = dataFile.createElement("clips");
typedef QVector<ClipView *> clipViewVector;
using clipViewVector = QVector<ClipView*>;
for( clipViewVector::const_iterator it = clipViews.begin();
it != clipViews.end(); ++it )
{

View File

@@ -77,7 +77,7 @@ namespace lmms
{
typedef AutomationClip::timeMap timeMap;
using timeMap = AutomationClip::timeMap;
namespace gui

View File

@@ -922,7 +922,7 @@ void InstrumentTrack::loadTrackSpecificSettings( const QDomElement & thisElement
}
else if(node.nodeName() == "instrument")
{
typedef Plugin::Descriptor::SubPluginFeatures::Key PluginKey;
using PluginKey = Plugin::Descriptor::SubPluginFeatures::Key;
PluginKey key(node.toElement().elementsByTagName("key").item(0).toElement());
if (reuseInstrument)