Fix compile with optional components disabled

This commit is contained in:
Jonas Kvinge
2019-10-03 23:29:52 +02:00
parent f449808ba3
commit 4402a56e94
16 changed files with 67 additions and 41 deletions

View File

@@ -252,6 +252,8 @@ QStringList DeviceLister::GuessIconForPath(const QString &path) {
ret << model_icon.arg(model);
}
}
#else
Q_UNUSED(path)
#endif
return ret;

View File

@@ -35,7 +35,7 @@
#include "core/song.h"
class MtpConnection : public QObject, public std::enable_shared_from_this<MtpConnection> {
public:
public:
MtpConnection(const QUrl &url);
~MtpConnection();
@@ -43,7 +43,7 @@ public:
LIBMTP_mtpdevice_t *device() const { return device_; }
bool GetSupportedFiletypes(QList<Song::FileType> *ret);
private:
private:
Q_DISABLE_COPY(MtpConnection)
LIBMTP_mtpdevice_t *device_;