Application: Use shared pointers

Fixes #1239
This commit is contained in:
Jonas Kvinge
2023-07-21 05:55:24 +02:00
parent d6b53f78ab
commit 2e61235403
316 changed files with 2170 additions and 1643 deletions

View File

@@ -24,8 +24,6 @@
#include "config.h"
#include <memory>
#include <QtGlobal>
#include <QObject>
#include <QAbstractItemDelegate>
@@ -47,6 +45,7 @@
#include <QBasicTimer>
#include <QCommonStyle>
#include "core/scoped_ptr.h"
#include "core/song.h"
#include "covermanager/albumcoverloaderresult.h"
#include "settings/appearancesettingspage.h"
@@ -91,7 +90,7 @@ class PlaylistProxyStyle : public QProxyStyle {
void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override;
private:
std::unique_ptr<QCommonStyle> common_style_;
ScopedPtr<QCommonStyle> common_style_;
};
class PlaylistView : public QTreeView {