diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-12-15 01:25:52 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-12-15 01:57:06 +0100 |
commit | 9326b65dd35d39c8180edc8c5200a84e81cd88c0 (patch) | |
tree | 7f8da8ef7ae9b3de498fa24c24129a7053c13f5c /src/widget | |
parent | 0471998e13aada9a76e92b13ab3885c2d1c2fb84 (diff) |
Add pointer qualification to auto types
Diffstat (limited to 'src/widget')
-rw-r--r-- | src/widget/weffectpushbutton.cpp | 4 | ||||
-rw-r--r-- | src/widget/whotcuebutton.cpp | 4 | ||||
-rw-r--r-- | src/widget/wimagestore.cpp | 4 | ||||
-rw-r--r-- | src/widget/wlibrarysidebar.cpp | 2 | ||||
-rw-r--r-- | src/widget/wmainmenubar.cpp | 56 | ||||
-rw-r--r-- | src/widget/wspinny.cpp | 4 | ||||
-rw-r--r-- | src/widget/wtrackmenu.cpp | 4 | ||||
-rw-r--r-- | src/widget/wtracktableview.cpp | 16 | ||||
-rw-r--r-- | src/widget/wtracktableviewheader.cpp | 2 | ||||
-rw-r--r-- | src/widget/wwidgetgroup.cpp | 2 | ||||
-rw-r--r-- | src/widget/wwidgetstack.cpp | 2 |
11 files changed, 50 insertions, 50 deletions
diff --git a/src/widget/weffectpushbutton.cpp b/src/widget/weffectpushbutton.cpp index 3dfc096e2c..45aa8f7065 100644 --- a/src/widget/weffectpushbutton.cpp +++ b/src/widget/weffectpushbutton.cpp @@ -122,11 +122,11 @@ void WEffectPushButton::parameterUpdated() { } double value = getControlParameterLeft(); - auto actionGroup = new QActionGroup(m_pButtonMenu); + auto* actionGroup = new QActionGroup(m_pButtonMenu); actionGroup->setExclusive(true); for (const auto& option : qAsConst(options)) { // action is added automatically to actionGroup - auto action = new QAction(actionGroup); + auto* action = new QAction(actionGroup); // qDebug() << options[i].first; action->setText(option.first); action->setData(option.second); diff --git a/src/widget/whotcuebutton.cpp b/src/widget/whotcuebutton.cpp index 4ba410c18b..11e71da429 100644 --- a/src/widget/whotcuebutton.cpp +++ b/src/widget/whotcuebutton.cpp @@ -58,7 +58,7 @@ void WHotcueButton::setup(const QDomNode& node, const SkinContext& context) { m_pCoColor->connectValueChanged(this, &WHotcueButton::slotColorChanged); slotColorChanged(m_pCoColor->get()); - auto pLeftConnection = new ControlParameterWidgetConnection( + auto* pLeftConnection = new ControlParameterWidgetConnection( this, createConfigKey(QStringLiteral("activate")), nullptr, @@ -66,7 +66,7 @@ void WHotcueButton::setup(const QDomNode& node, const SkinContext& context) { ControlParameterWidgetConnection::EMIT_ON_PRESS_AND_RELEASE); addLeftConnection(pLeftConnection); - auto pDisplayConnection = new ControlParameterWidgetConnection( + auto* pDisplayConnection = new ControlParameterWidgetConnection( this, createConfigKey(QStringLiteral("enabled")), nullptr, diff --git a/src/widget/wimagestore.cpp b/src/widget/wimagestore.cpp index 2ff141cef8..a6bb4edc58 100644 --- a/src/widget/wimagestore.cpp +++ b/src/widget/wimagestore.cpp @@ -75,8 +75,8 @@ QImage* WImageStore::getImageNoCache(const PixmapSource& source, double scaleFac return nullptr; } - auto pImage = new QImage(renderer.defaultSize() * scaleFactor, - QImage::Format_ARGB32); + auto* pImage = new QImage(renderer.defaultSize() * scaleFactor, + QImage::Format_ARGB32); pImage->fill(0x00000000); // Transparent black. QPainter painter(pImage); renderer.render(&painter); diff --git a/src/widget/wlibrarysidebar.cpp b/src/widget/wlibrarysidebar.cpp index 81547d00d1..57915ce18b 100644 --- a/src/widget/wlibrarysidebar.cpp +++ b/src/widget/wlibrarysidebar.cpp @@ -212,7 +212,7 @@ void WLibrarySidebar::keyPressEvent(QKeyEvent* event) { } void WLibrarySidebar::selectIndex(const QModelIndex& index) { - auto pModel = new QItemSelectionModel(model()); + auto* pModel = new QItemSelectionModel(model()); pModel->select(index, QItemSelectionModel::Select); setSelectionModel(pModel); diff --git a/src/widget/wmainmenubar.cpp b/src/widget/wmainmenubar.cpp index 7e409d0a55..62907573dc 100644 --- a/src/widget/wmainmenubar.cpp +++ b/src/widget/wmainmenubar.cpp @@ -97,7 +97,7 @@ void WMainMenuBar::initialize() { QString quitTitle = tr("&Exit"); QString quitText = tr("Quits Mixxx"); - auto pFileQuit = new QAction(quitTitle, this); + auto* pFileQuit = new QAction(quitTitle, this); pFileQuit->setShortcut( QKeySequence(m_pKbdConfig->getValue(ConfigKey("[KeyboardShortcuts]", "FileMenu_Quit"), tr("Ctrl+q")))); @@ -115,7 +115,7 @@ void WMainMenuBar::initialize() { QString rescanTitle = tr("&Rescan Library"); QString rescanText = tr("Rescans library folders for changes to tracks."); - auto pLibraryRescan = new QAction(rescanTitle, this); + auto* pLibraryRescan = new QAction(rescanTitle, this); pLibraryRescan->setStatusTip(rescanText); pLibraryRescan->setWhatsThis(buildWhatsThis(rescanTitle, rescanText)); pLibraryRescan->setCheckable(false); @@ -128,7 +128,7 @@ void WMainMenuBar::initialize() { QString createPlaylistTitle = tr("Create &New Playlist"); QString createPlaylistText = tr("Create a new playlist"); - auto pLibraryCreatePlaylist = new QAction(createPlaylistTitle, this); + auto* pLibraryCreatePlaylist = new QAction(createPlaylistTitle, this); pLibraryCreatePlaylist->setShortcut( QKeySequence(m_pKbdConfig->getValue( ConfigKey("[KeyboardShortcuts]", "LibraryMenu_NewPlaylist"), @@ -141,7 +141,7 @@ void WMainMenuBar::initialize() { QString createCrateTitle = tr("Create New &Crate"); QString createCrateText = tr("Create a new crate"); - auto pLibraryCreateCrate = new QAction(createCrateTitle, this); + auto* pLibraryCreateCrate = new QAction(createCrateTitle, this); pLibraryCreateCrate->setShortcut( QKeySequence(m_pKbdConfig->getValue(ConfigKey("[KeyboardShortcuts]", "LibraryMenu_NewCrate"), @@ -170,7 +170,7 @@ void WMainMenuBar::initialize() { QString showSkinSettingsTitle = tr("Show Skin Settings Menu"); QString showSkinSettingsText = tr("Show the Skin Settings Menu of the currently selected Skin") + " " + mayNotBeSupported; - auto pViewShowSkinSettings = new QAction(showSkinSettingsTitle, this); + auto* pViewShowSkinSettings = new QAction(showSkinSettingsTitle, this); pViewShowSkinSettings->setCheckable(true); pViewShowSkinSettings->setShortcut( QKeySequence(m_pKbdConfig->getValue( @@ -185,7 +185,7 @@ void WMainMenuBar::initialize() { QString showMicrophoneTitle = tr("Show Microphone Section"); QString showMicrophoneText = tr("Show the microphone section of the Mixxx interface.") + " " + mayNotBeSupported; - auto pViewShowMicrophone = new QAction(showMicrophoneTitle, this); + auto* pViewShowMicrophone = new QAction(showMicrophoneTitle, this); pViewShowMicrophone->setCheckable(true); pViewShowMicrophone->setShortcut( QKeySequence(m_pKbdConfig->getValue( @@ -200,7 +200,7 @@ void WMainMenuBar::initialize() { QString showVinylControlTitle = tr("Show Vinyl Control Section"); QString showVinylControlText = tr("Show the vinyl control section of the Mixxx interface.") + " " + mayNotBeSupported; - auto pViewVinylControl = new QAction(showVinylControlTitle, this); + auto* pViewVinylControl = new QAction(showVinylControlTitle, this); pViewVinylControl->setCheckable(true); pViewVinylControl->setShortcut( QKeySequence(m_pKbdConfig->getValue( @@ -215,7 +215,7 @@ void WMainMenuBar::initialize() { QString showPreviewDeckTitle = tr("Show Preview Deck"); QString showPreviewDeckText = tr("Show the preview deck in the Mixxx interface.") + " " + mayNotBeSupported; - auto pViewShowPreviewDeck = new QAction(showPreviewDeckTitle, this); + auto* pViewShowPreviewDeck = new QAction(showPreviewDeckTitle, this); pViewShowPreviewDeck->setCheckable(true); pViewShowPreviewDeck->setShortcut( QKeySequence(m_pKbdConfig->getValue( @@ -230,7 +230,7 @@ void WMainMenuBar::initialize() { QString showCoverArtTitle = tr("Show Cover Art"); QString showCoverArtText = tr("Show cover art in the Mixxx interface.") + " " + mayNotBeSupported; - auto pViewShowCoverArt = new QAction(showCoverArtTitle, this); + auto* pViewShowCoverArt = new QAction(showCoverArtTitle, this); pViewShowCoverArt->setCheckable(true); pViewShowCoverArt->setShortcut( QKeySequence(m_pKbdConfig->getValue( @@ -245,7 +245,7 @@ void WMainMenuBar::initialize() { QString maximizeLibraryTitle = tr("Maximize Library"); QString maximizeLibraryText = tr("Maximize the track library to take up all the available screen space.") + " " + mayNotBeSupported; - auto pViewMaximizeLibrary = new QAction(maximizeLibraryTitle, this); + auto* pViewMaximizeLibrary = new QAction(maximizeLibraryTitle, this); pViewMaximizeLibrary->setCheckable(true); pViewMaximizeLibrary->setShortcut( QKeySequence(m_pKbdConfig->getValue( @@ -262,7 +262,7 @@ void WMainMenuBar::initialize() { QString fullScreenTitle = tr("&Full Screen"); QString fullScreenText = tr("Display Mixxx using the full screen"); - auto pViewFullScreen = new QAction(fullScreenTitle, this); + auto* pViewFullScreen = new QAction(fullScreenTitle, this); QList<QKeySequence> shortcuts; // We use F11 _AND_ the OS shortcut only on Linux and Windows because on // newer macOS versions there might be issues with getting F11 working. @@ -306,7 +306,7 @@ void WMainMenuBar::initialize() { for (int i = 0; i < kMaximumVinylControlInputs; ++i) { QString vinylControlTitle = tr("Enable Vinyl Control &%1").arg(i + 1); - auto vc_checkbox = new QAction(vinylControlTitle, this); + auto* vc_checkbox = new QAction(vinylControlTitle, this); m_vinylControlEnabledActions.push_back(vc_checkbox); QString binding = m_pKbdConfig->getValue( @@ -338,7 +338,7 @@ void WMainMenuBar::initialize() { QString recordTitle = tr("&Record Mix"); QString recordText = tr("Record your mix to a file"); - auto pOptionsRecord = new QAction(recordTitle, this); + auto* pOptionsRecord = new QAction(recordTitle, this); pOptionsRecord->setShortcut( QKeySequence(m_pKbdConfig->getValue( ConfigKey("[KeyboardShortcuts]", "OptionsMenu_RecordMix"), @@ -357,7 +357,7 @@ void WMainMenuBar::initialize() { #ifdef __BROADCAST__ QString broadcastingTitle = tr("Enable Live &Broadcasting"); QString broadcastingText = tr("Stream your mixes to a shoutcast or icecast server"); - auto pOptionsBroadcasting = new QAction(broadcastingTitle, this); + auto* pOptionsBroadcasting = new QAction(broadcastingTitle, this); pOptionsBroadcasting->setShortcut( QKeySequence(m_pKbdConfig->getValue( ConfigKey("[KeyboardShortcuts]", @@ -382,7 +382,7 @@ void WMainMenuBar::initialize() { QString keyboardShortcutText = tr("Toggles keyboard shortcuts on or off"); bool keyboardShortcutsEnabled = m_pConfig->getValueString( ConfigKey("[Keyboard]", "Enabled")) == "1"; - auto pOptionsKeyboard = new QAction(keyboardShortcutTitle, this); + auto* pOptionsKeyboard = new QAction(keyboardShortcutTitle, this); pOptionsKeyboard->setShortcut( QKeySequence(m_pKbdConfig->getValue( ConfigKey("[KeyboardShortcuts]", "OptionsMenu_EnableShortcuts"), @@ -400,7 +400,7 @@ void WMainMenuBar::initialize() { QString preferencesTitle = tr("&Preferences"); QString preferencesText = tr("Change Mixxx settings (e.g. playback, MIDI, controls)"); - auto pOptionsPreferences = new QAction(preferencesTitle, this); + auto* pOptionsPreferences = new QAction(preferencesTitle, this); pOptionsPreferences->setShortcut( QKeySequence(m_pKbdConfig->getValue( ConfigKey("[KeyboardShortcuts]", "OptionsMenu_Preferences"), @@ -420,7 +420,7 @@ void WMainMenuBar::initialize() { QString reloadSkinTitle = tr("&Reload Skin"); QString reloadSkinText = tr("Reload the skin"); - auto pDeveloperReloadSkin = new QAction(reloadSkinTitle, this); + auto* pDeveloperReloadSkin = new QAction(reloadSkinTitle, this); pDeveloperReloadSkin->setShortcut( QKeySequence(m_pKbdConfig->getValue( ConfigKey("[KeyboardShortcuts]", "OptionsMenu_ReloadSkin"), @@ -433,7 +433,7 @@ void WMainMenuBar::initialize() { QString developerToolsTitle = tr("Developer &Tools"); QString developerToolsText = tr("Opens the developer tools dialog"); - auto pDeveloperTools = new QAction(developerToolsTitle, this); + auto* pDeveloperTools = new QAction(developerToolsTitle, this); pDeveloperTools->setShortcut( QKeySequence(m_pKbdConfig->getValue( ConfigKey("[KeyboardShortcuts]", "OptionsMenu_DeveloperTools"), @@ -453,7 +453,7 @@ void WMainMenuBar::initialize() { QString enableExperimentTitle = tr("Stats: &Experiment Bucket"); QString enableExperimentToolsText = tr( "Enables experiment mode. Collects stats in the EXPERIMENT tracking bucket."); - auto pDeveloperStatsExperiment = new QAction(enableExperimentTitle, this); + auto* pDeveloperStatsExperiment = new QAction(enableExperimentTitle, this); pDeveloperStatsExperiment->setShortcut( QKeySequence(m_pKbdConfig->getValue( ConfigKey("[KeyboardShortcuts]", "OptionsMenu_DeveloperStatsExperiment"), @@ -473,7 +473,7 @@ void WMainMenuBar::initialize() { QString enableBaseTitle = tr("Stats: &Base Bucket"); QString enableBaseToolsText = tr( "Enables base mode. Collects stats in the BASE tracking bucket."); - auto pDeveloperStatsBase = new QAction(enableBaseTitle, this); + auto* pDeveloperStatsBase = new QAction(enableBaseTitle, this); pDeveloperStatsBase->setShortcut( QKeySequence(m_pKbdConfig->getValue( ConfigKey("[KeyboardShortcuts]", "OptionsMenu_DeveloperStatsBase"), @@ -495,7 +495,7 @@ void WMainMenuBar::initialize() { QString scriptDebuggerText = tr("Enables the debugger during skin parsing"); bool scriptDebuggerEnabled = m_pConfig->getValueString( ConfigKey("[ScriptDebugger]", "Enabled")) == "1"; - auto pDeveloperDebugger = new QAction(scriptDebuggerTitle, this); + auto* pDeveloperDebugger = new QAction(scriptDebuggerTitle, this); pDeveloperDebugger->setShortcut( QKeySequence(m_pKbdConfig->getValue( ConfigKey("[KeyboardShortcuts]", "DeveloperMenu_EnableDebugger"), @@ -523,7 +523,7 @@ void WMainMenuBar::initialize() { QString supportTitle = tr("&Community Support") + externalLinkSuffix; QString supportText = tr("Get help with Mixxx"); - auto pHelpSupport = new QAction(supportTitle, this); + auto* pHelpSupport = new QAction(supportTitle, this); pHelpSupport->setStatusTip(supportText); pHelpSupport->setWhatsThis(buildWhatsThis(supportTitle, supportText)); connect(pHelpSupport, &QAction::triggered, @@ -554,7 +554,7 @@ void WMainMenuBar::initialize() { QString manualTitle = tr("&User Manual") + externalLinkSuffix; QString manualText = tr("Read the Mixxx user manual."); - auto pHelpManual = new QAction(manualTitle, this); + auto* pHelpManual = new QAction(manualTitle, this); pHelpManual->setStatusTip(manualText); pHelpManual->setWhatsThis(buildWhatsThis(manualTitle, manualText)); connect(pHelpManual, &QAction::triggered, @@ -563,7 +563,7 @@ void WMainMenuBar::initialize() { QString shortcutsTitle = tr("&Keyboard Shortcuts") + externalLinkSuffix; QString shortcutsText = tr("Speed up your workflow with keyboard shortcuts."); - auto pHelpShortcuts = new QAction(shortcutsTitle, this); + auto* pHelpShortcuts = new QAction(shortcutsTitle, this); pHelpShortcuts->setStatusTip(shortcutsText); pHelpShortcuts->setWhatsThis(buildWhatsThis(shortcutsTitle, shortcutsText)); connect(pHelpShortcuts, &QAction::triggered, this, [this] { @@ -573,7 +573,7 @@ void WMainMenuBar::initialize() { QString feedbackTitle = tr("Send Us &Feedback") + externalLinkSuffix; QString feedbackText = tr("Send feedback to the Mixxx team."); - auto pHelpFeedback = new QAction(feedbackTitle, this); + auto* pHelpFeedback = new QAction(feedbackTitle, this); pHelpFeedback->setStatusTip(feedbackText); pHelpFeedback->setWhatsThis(buildWhatsThis(feedbackTitle, feedbackText)); connect(pHelpFeedback, &QAction::triggered, @@ -582,7 +582,7 @@ void WMainMenuBar::initialize() { QString translateTitle = tr("&Translate This Application") + externalLinkSuffix; QString translateText = tr("Help translate this application into your language."); - auto pHelpTranslation = new QAction(translateTitle, this); + auto* pHelpTranslation = new QAction(translateTitle, this); pHelpTranslation->setStatusTip(translateText); pHelpTranslation->setWhatsThis(buildWhatsThis(translateTitle, translateText)); connect(pHelpTranslation, &QAction::triggered, @@ -593,7 +593,7 @@ void WMainMenuBar::initialize() { QString aboutTitle = tr("&About"); QString aboutText = tr("About the application"); - auto pHelpAboutApp = new QAction(aboutTitle, this); + auto* pHelpAboutApp = new QAction(aboutTitle, this); pHelpAboutApp->setStatusTip(aboutText); pHelpAboutApp->setWhatsThis(buildWhatsThis(aboutTitle, aboutText)); pHelpAboutApp->setMenuRole(QAction::AboutRole); @@ -674,7 +674,7 @@ void WMainMenuBar::slotVisitUrl(const QString& url) { void WMainMenuBar::createVisibilityControl(QAction* pAction, const ConfigKey& key) { - auto pConnection = new VisibilityControlConnection(this, pAction, key); + auto* pConnection = new VisibilityControlConnection(this, pAction, key); connect(this, &WMainMenuBar::internalOnNewSkinLoaded, pConnection, diff --git a/src/widget/wspinny.cpp b/src/widget/wspinny.cpp index eb5fe93fcd..8c4149f619 100644 --- a/src/widget/wspinny.cpp +++ b/src/widget/wspinny.cpp @@ -313,7 +313,7 @@ void WSpinny::render(VSyncThread* vSyncThread) { return; } - auto window = windowHandle(); + auto* window = windowHandle(); if (window == nullptr || !window->isExposed()) { return; } @@ -399,7 +399,7 @@ void WSpinny::swap() { if (!isValid() || !isVisible()) { return; } - auto window = windowHandle(); + auto* window = windowHandle(); if (window == nullptr || !window->isExposed()) { return; } diff --git a/src/widget/wtrackmenu.cpp b/src/widget/wtrackmenu.cpp index 84b88bf36b..17c2a15f3e 100644 --- a/src/widget/wtrackmenu.cpp +++ b/src/widget/wtrackmenu.cpp @@ -927,7 +927,7 @@ void WTrackMenu::slotPopulatePlaylistMenu() { if (!playlistDao.isHidden(it.value())) { // No leak because making the menu the parent means they will be // auto-deleted - auto pAction = new QAction( + auto* pAction = new QAction( mixxx::escapeTextPropertyWithoutShortcuts(it.key()), m_pPlaylistMenu); bool locked = playlistDao.isPlaylistLocked(it.value()); @@ -1054,7 +1054,7 @@ void WTrackMenu::slotPopulateCrateMenu() { } void WTrackMenu::updateSelectionCrates(QWidget* pWidget) { - auto pCheckBox = qobject_cast<QCheckBox*>(pWidget); + auto* pCheckBox = qobject_cast<QCheckBox*>(pWidget); VERIFY_OR_DEBUG_ASSERT(pCheckBox) { qWarning() << "crateId is not of CrateId type"; return; diff --git a/src/widget/wtracktableview.cpp b/src/widget/wtracktableview.cpp index 98e4eef1c0..7d360c66fb 100644 --- a/src/widget/wtracktableview.cpp +++ b/src/widget/wtracktableview.cpp @@ -183,7 +183,7 @@ void WTrackTableView::loadTrackModel(QAbstractItemModel* model) { // header. Also, for some reason the WTrackTableView has to be hidden or // else problems occur. Since we parent the WtrackTableViewHeader's to the // WTrackTableView, they are automatically deleted. - auto header = new WTrackTableViewHeader(Qt::Horizontal, this); + auto* header = new WTrackTableViewHeader(Qt::Horizontal, this); // WTF(rryan) The following saves on unnecessary work on the part of // WTrackTableHeaderView. setHorizontalHeader() calls setModel() on the @@ -193,7 +193,7 @@ void WTrackTableView::loadTrackModel(QAbstractItemModel* model) { // WTrackTableViewHeader, so this is wasteful. Setting a temporary // QHeaderView here saves on setModel() calls. Since we parent the // QHeaderView to the WTrackTableView, it is automatically deleted. - auto tempHeader = new QHeaderView(Qt::Horizontal, this); + auto* tempHeader = new QHeaderView(Qt::Horizontal, this); /* Tobias Rafreider: DO NOT SET SORTING TO TRUE during header replacement * Otherwise, setSortingEnabled(1) will immediately trigger sortByColumn() * For some reason this will cause 4 select statements in series @@ -315,7 +315,7 @@ void WTrackTableView::loadTrackModel(QAbstractItemModel* model) { } void WTrackTableView::initTrackMenu() { - auto trackModel = getTrackModel(); + auto* trackModel = getTrackModel(); DEBUG_ASSERT(trackModel); if (m_pTrackMenu) { @@ -347,7 +347,7 @@ void WTrackTableView::slotMouseDoubleClicked(const QModelIndex& index) { return; } - auto trackModel = getTrackModel(); + auto* trackModel = getTrackModel(); VERIFY_OR_DEBUG_ASSERT(trackModel) { return; } @@ -504,7 +504,7 @@ void WTrackTableView::mouseMoveEvent(QMouseEvent* pEvent) { // Drag enter event, happens when a dragged item hovers over the track table view void WTrackTableView::dragEnterEvent(QDragEnterEvent * event) { - auto trackModel = getTrackModel(); + auto* trackModel = getTrackModel(); //qDebug() << "dragEnterEvent" << event->mimeData()->formats(); if (event->mimeData()->hasUrls()) { if (event->source() == this) { @@ -525,7 +525,7 @@ void WTrackTableView::dragEnterEvent(QDragEnterEvent * event) { // It changes the drop handle to a "+" when the drag content is acceptable. // Without it, the following drop is ignored. void WTrackTableView::dragMoveEvent(QDragMoveEvent * event) { - auto trackModel = getTrackModel(); + auto* trackModel = getTrackModel(); // Needed to allow auto-scrolling WLibraryTableView::dragMoveEvent(event); @@ -773,7 +773,7 @@ void WTrackTableView::loadSelectedTrackToGroup(const QString& group, bool play) } } auto index = indices.at(0); - auto trackModel = getTrackModel(); + auto* trackModel = getTrackModel(); TrackPointer pTrack; if (trackModel && (pTrack = trackModel->getTrack(index))) { @@ -837,7 +837,7 @@ void WTrackTableView::setSelectedTracks(const QList<TrackId>& trackIds) { } void WTrackTableView::addToAutoDJ(PlaylistDAO::AutoDJSendLoc loc) { - auto trackModel = getTrackModel(); + auto* trackModel = getTrackModel(); if (!trackModel->hasCapabilities(TrackModel::TRACKMODELCAPS_ADDTOAUTODJ)) { return; } diff --git a/src/widget/wtracktableviewheader.cpp b/src/widget/wtracktableviewheader.cpp index a9b3dc4b10..d3c1b10adc 100644 --- a/src/widget/wtracktableviewheader.cpp +++ b/src/widget/wtracktableviewheader.cpp @@ -151,7 +151,7 @@ void WTrackTableViewHeader::setModel(QAbstractItemModel* model) { } QString title = model->headerData(i, orientation()).toString(); - auto action = new QAction(title, &m_menu); + auto* action = new QAction(title, &m_menu); action->setCheckable(true); /* If Mixxx starts the first time or the header states have been cleared diff --git a/src/widget/wwidgetgroup.cpp b/src/widget/wwidgetgroup.cpp index 782463c742..b6838915df 100644 --- a/src/widget/wwidgetgroup.cpp +++ b/src/widget/wwidgetgroup.cpp @@ -126,7 +126,7 @@ void WWidgetGroup::setup(const QDomNode& node, const SkinContext& context) { } else if (layout == "horizontal") { pLayout = new QHBoxLayout(); } else if (layout == "stacked") { - auto pStackedLayout = new QStackedLayout(); + auto* pStackedLayout = new QStackedLayout(); pStackedLayout->setStackingMode(QStackedLayout::StackAll); pLayout = pStackedLayout; // Adding a zero-size dummy widget as index 0 here before diff --git a/src/widget/wwidgetstack.cpp b/src/widget/wwidgetstack.cpp index 225ca51ce8..532078c903 100644 --- a/src/widget/wwidgetstack.cpp +++ b/src/widget/wwidgetstack.cpp @@ -140,7 +140,7 @@ void WWidgetStack::addWidgetWithControl(QWidget* pWidget, ControlObject* pContro int on_hide_select) { int index = addWidget(pWidget); if (pControl) { - auto pListener = new WidgetStackControlListener(this, pControl, index); + auto* pListener = new WidgetStackControlListener(this, pControl, index); m_listeners[index] = pListener; if (pControl->get() > 0) { setCurrentIndex(count()-1); |