clang-tidy: Apply modernize-use-using everywhere (#6453)
This commit is contained in:
@@ -64,9 +64,7 @@
|
||||
namespace lmms
|
||||
{
|
||||
|
||||
|
||||
typedef LocklessList<PlayHandle *>::Element LocklessListElement;
|
||||
|
||||
using LocklessListElement = LocklessList<PlayHandle*>::Element;
|
||||
|
||||
static thread_local bool s_renderingThread;
|
||||
|
||||
|
||||
@@ -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 = "";
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace lmms
|
||||
{
|
||||
|
||||
|
||||
typedef AutomationClip::timeMap timeMap;
|
||||
using timeMap = AutomationClip::timeMap;
|
||||
|
||||
|
||||
namespace gui
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user