Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/gh13222 util deprecate #13223

Merged
merged 5 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,6 @@ target_precompile_headers(mixxx-lib PUBLIC
src/util/mac.h
src/util/macros.h
src/util/math.h
src/util/memory.h
src/util/messagepipe.h
src/util/movinginterquartilemean.h
src/util/mutex.h
Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/analyzerbeats.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

#include <QHash>
#include <QList>
#include <memory>

#include "analyzer/analyzer.h"
#include "analyzer/plugins/analyzerplugin.h"
#include "preferences/beatdetectionsettings.h"
#include "preferences/usersettings.h"
#include "util/memory.h"

class AnalyzerBeats : public Analyzer {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/analyzerkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#include <QHash>
#include <QList>
#include <QString>
#include <memory>

#include "analyzer/analyzer.h"
#include "analyzer/plugins/analyzerplugin.h"
#include "preferences/keydetectionsettings.h"
#include "track/track_decl.h"
#include "util/memory.h"

class AnalyzerKey : public Analyzer {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/analyzerthread.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <memory>
#include <optional>
#include <vector>

Expand All @@ -12,7 +13,6 @@
#include "track/track_decl.h"
#include "track/trackid.h"
#include "util/db/dbconnectionpool.h"
#include "util/memory.h"
#include "util/performancetimer.h"
#include "util/samplebuffer.h"
#include "util/workerthread.h"
Expand Down
5 changes: 2 additions & 3 deletions src/analyzer/plugins/analyzerqueenmarybeats.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#pragma once

#include <vector>

#include <QObject>
#include <memory>
#include <vector>

#include "analyzer/plugins/analyzerplugin.h"
#include "analyzer/plugins/buffering_utils.h"
#include "util/memory.h"

class DetectionFunction;

Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/plugins/analyzerqueenmarykey.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include <QObject>
#include <memory>

#include "analyzer/plugins/analyzerplugin.h"
#include "analyzer/plugins/buffering_utils.h"
#include "util/memory.h"
#include "util/types.h"

class GetKeyMode;
Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/plugins/analyzersoundtouchbeats.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <QObject>
#include <memory>

#include "analyzer/plugins/analyzerplugin.h"
#include "util/memory.h"
#include "util/samplebuffer.h"

namespace soundtouch {
Expand Down
3 changes: 1 addition & 2 deletions src/control/controlproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include "control/control.h"
#include "preferences/usersettings.h"
#include "util/platform.h"

//// This class is the successor of ControlObjectThread. It should be used for
/// new code to avoid unnecessary locking during send if no slot is connected.
Expand Down Expand Up @@ -59,7 +58,7 @@ class ControlProxy : public QObject {
break;
case Qt::BlockingQueuedConnection:
// We must not block the signal source by a blocking connection
M_FALLTHROUGH_INTENDED;
[[fallthrough]];
default:
DEBUG_ASSERT(false);
return false;
Expand Down
3 changes: 2 additions & 1 deletion src/effects/backends/builtin/balanceeffect.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#pragma once

#include <memory>

#include "effects/backends/effectprocessor.h"
#include "engine/filters/enginefilterlinkwitzriley4.h"
#include "util/memory.h"
#include "util/samplebuffer.h"

class BalanceGroupState : public EffectState {
Expand Down
3 changes: 2 additions & 1 deletion src/effects/backends/builtin/biquadfullkilleqeffect.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#pragma once

#include <memory>

#include "control/pollingcontrolproxy.h"
#include "effects/backends/builtin/lvmixeqbase.h"
#include "effects/backends/effectprocessor.h"
#include "engine/filters/enginefilterbessel4.h"
#include "engine/filters/enginefilterbiquad1.h"
#include "util/memory.h"
#include "util/samplebuffer.h"
#include "util/types.h"

Expand Down
3 changes: 2 additions & 1 deletion src/effects/backends/builtin/loudnesscontoureffect.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include <memory>

#include "effects/backends/effectprocessor.h"
#include "util/memory.h"
#include "util/types.h"

class EngineFilterBiquad1HighShelving;
Expand Down
2 changes: 1 addition & 1 deletion src/effects/backends/builtin/parametriceqeffect.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#pragma once

#include <QMap>
#include <memory>
#include <vector>

#include "audio/types.h"
#include "effects/backends/effectprocessor.h"
#include "engine/filters/enginefilterbiquad1.h"
#include "util/class.h"
#include "util/memory.h"
#include "util/types.h"

// The ParametricEQEffect models the mid bands from a SSL Black EQ (242)
Expand Down
3 changes: 2 additions & 1 deletion src/effects/backends/builtin/threebandbiquadeqeffect.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#pragma once

#include <memory>

#include "control/pollingcontrolproxy.h"
#include "effects/backends/effectprocessor.h"
#include "engine/filters/enginefilterbiquad1.h"
#include "util/memory.h"
#include "util/samplebuffer.h"
#include "util/types.h"

Expand Down
2 changes: 1 addition & 1 deletion src/effects/effectchain.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

#include <QList>
#include <QObject>
#include <memory>

#include "effects/defs.h"
#include "effects/effectchainmixmode.h"
#include "engine/channelhandle.h"
#include "util/class.h"
#include "util/memory.h"

class ControlObject;
class ControlPushButton;
Expand Down
3 changes: 2 additions & 1 deletion src/encoder/encoder.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#pragma once

#include <memory>

#include "encoder/encoderrecordingsettings.h"
#include "encoder/encodersettings.h"
#include "preferences/usersettings.h"
#include "util/memory.h"
#include "util/types.h"

class EncoderCallback;
Expand Down
2 changes: 1 addition & 1 deletion src/encoder/encoderopus.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
#include <QMap>
#include <QString>
#include <QVector>
#include <memory>

#include "audio/types.h"
#include "encoder/encoder.h"
#include "util/fifo.h"
#include "util/memory.h"

class EncoderCallback;
class EncoderSettings;
Expand Down
2 changes: 1 addition & 1 deletion src/encoder/encodersettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <QList>
#include <QObject>
#include "util/memory.h"
#include <memory>

/// Encoder settings interface for encoders
class EncoderSettings {
Expand Down
2 changes: 1 addition & 1 deletion src/engine/bufferscalers/enginebufferscalerubberband.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include <rubberband/RubberBandStretcher.h>

#include <array>
#include <memory>

#include "engine/bufferscalers/enginebufferscale.h"
#include "util/memory.h"
#include "util/samplebuffer.h"

class ReadAheadManager;
Expand Down
3 changes: 2 additions & 1 deletion src/engine/bufferscalers/enginebufferscalest.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include <memory>

#include "engine/bufferscalers/enginebufferscale.h"
#include "util/memory.h"
#include "util/samplebuffer.h"

class ReadAheadManager;
Expand Down
2 changes: 1 addition & 1 deletion src/engine/effects/engineeffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
#include <QSet>
#include <QString>
#include <QVector>
#include <memory>

#include "effects/backends/effectmanifest.h"
#include "effects/backends/effectprocessor.h"
#include "engine/channelhandle.h"
#include "engine/effects/message.h"
#include "util/memory.h"
#include "util/types.h"

/// EngineEffect is a generic wrapper around an EffectProcessor which intermediates
Expand Down
2 changes: 1 addition & 1 deletion src/engine/effects/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#include <QString>
#include <QVariant>
#include <QtGlobal>
#include <memory>

#include "effects/defs.h"
#include "effects/effectchainmixmode.h"
#include "engine/channelhandle.h"
#include "util/memory.h"
#include "util/messagepipe.h"

class EngineEffectChain;
Expand Down
2 changes: 1 addition & 1 deletion src/library/basetracktablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ QVariant BaseTrackTableModel::roleValue(
// Same value as for Qt::DisplayRole (see below)
break;
}
M_FALLTHROUGH_INTENDED;
[[fallthrough]];
// NOTE: for export we need to fall through to Qt::DisplayRole,
// so do not add any other role cases here, or the export
// will be empty
Expand Down
2 changes: 1 addition & 1 deletion src/library/browse/browsefeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
#include <QMenu>
#include <QPushButton>
#include <QStringList>
#include <memory>

#include "library/browse/foldertreemodel.h"
#include "library/library.h"
#include "library/trackcollection.h"
#include "library/trackcollectionmanager.h"
#include "library/treeitem.h"
#include "moc_browsefeature.cpp"
#include "util/memory.h"
#include "widget/wlibrary.h"
#include "widget/wlibrarysidebar.h"
#include "widget/wlibrarytextbrowser.h"
Expand Down
2 changes: 1 addition & 1 deletion src/library/dao/trackdao.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
#include <QObject>
#include <QSet>
#include <QString>
#include <memory>

#include "library/dao/dao.h"
#include "library/relocatedtrack.h"
#include "preferences/usersettings.h"
#include "track/globaltrackcache.h"
#include "util/class.h"
#include "util/memory.h"

class SqlTransaction;
class PlaylistDAO;
Expand Down
2 changes: 1 addition & 1 deletion src/library/librarycontrol.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include <QObject>
#include <memory>

#include "control/controlproxy.h"
#include "library/library_decl.h"
#include "util/memory.h"

class ControlEncoder;
class ControlObject;
Expand Down
2 changes: 1 addition & 1 deletion src/library/searchquery.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#include <QSqlDatabase>
#include <QString>
#include <QStringList>
#include <memory>
#include <utility>
#include <vector>

#include "proto/keys.pb.h"
#include "track/track_decl.h"
#include "util/assert.h"
#include "util/memory.h"

class CrateStorage;
class TrackId;
Expand Down
2 changes: 1 addition & 1 deletion src/library/treeitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#include <QList>
#include <QString>
#include <QVariant>
#include <memory>

#include "util/assert.h"
#include "util/memory.h"

class LibraryFeature;

Expand Down
3 changes: 1 addition & 2 deletions src/library/treeitemmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#include <QAbstractItemModel>
#include <QModelIndex>
#include <QVariant>

#include "util/memory.h"
#include <memory>

class TreeItem;

Expand Down
3 changes: 2 additions & 1 deletion src/mixer/basetrackplayer.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#pragma once

#include <memory>

#include "engine/channels/enginechannel.h"
#include "mixer/baseplayer.h"
#include "preferences/usersettings.h"
#include "track/replaygain.h"
#include "track/track_decl.h"
#include "track/trackid.h"
#include "util/color/rgbcolor.h"
#include "util/memory.h"
#include "util/parented_ptr.h"
#include "util/performancetimer.h"

Expand Down
2 changes: 1 addition & 1 deletion src/mixer/samplerbank.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <QObject>
#include <memory>

#include "preferences/usersettings.h"
#include "util/memory.h"

class ControlObject;
class ControlProxy;
Expand Down
2 changes: 1 addition & 1 deletion src/skin/legacy/legacyskinparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
#include <QObject>
#include <QSet>
#include <QString>
#include <memory>

#include "preferences/usersettings.h"
#include "proto/skin.pb.h"
#include "skin/legacy/skinparser.h"
#include "skin/legacy/tooltips.h"
#include "util/memory.h"
#include "vinylcontrol/vinylcontrolmanager.h"

class WBaseWidget;
Expand Down
Loading
Loading