mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-28 01:59:24 +01:00
Fix compilation in release mode
This commit is contained in:
parent
79527447e2
commit
ceb6382e9f
2
3rdparty/qtsingleapplication/qtlocalpeer.cpp
vendored
2
3rdparty/qtsingleapplication/qtlocalpeer.cpp
vendored
@ -191,7 +191,7 @@ void QtLocalPeer::receiveConnection()
|
||||
uMsgBuf += got;
|
||||
} while (remaining && got >= 0 && socket->waitForReadyRead(2000));
|
||||
if (got < 0) {
|
||||
qWarning() << "QtLocalPeer: Message reception failed" << socket->errorString();
|
||||
qWarning("QtLocalPeer: Message reception failed %s", socket->errorString().toUtf8().constData());
|
||||
delete socket;
|
||||
return;
|
||||
}
|
||||
|
@ -59,6 +59,7 @@ set(CLEMENTINE-SOURCES
|
||||
playlistsequence.cpp
|
||||
xspfparser.cpp
|
||||
globalshortcuts/globalshortcuts.cpp
|
||||
fixlastfm.cpp
|
||||
)
|
||||
|
||||
# Header files that have Q_OBJECT in
|
||||
|
8
src/fixlastfm.cpp
Normal file
8
src/fixlastfm.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
#include "fixlastfm.h"
|
||||
|
||||
#ifdef QT_NO_DEBUG_OUTPUT
|
||||
QDebug& operator<<(QDebug& d, const QUrl&) {
|
||||
return d;
|
||||
}
|
||||
#endif
|
||||
|
13
src/fixlastfm.h
Normal file
13
src/fixlastfm.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef FIXLASTFM_H
|
||||
#define FIXLASTFM_H
|
||||
|
||||
// Include this before <lastfm/Track> to fix a compile error in release mode
|
||||
|
||||
#ifdef QT_NO_DEBUG_OUTPUT
|
||||
# include <QtDebug>
|
||||
# include <QUrl>
|
||||
// Stub this out so lastfm/Track still compiles
|
||||
QDebug& operator<<(QDebug&, const QUrl&);
|
||||
#endif
|
||||
|
||||
#endif
|
@ -9,6 +9,7 @@ class Track;
|
||||
#include <QtGlobal>
|
||||
uint qHash(const lastfm::Track& track);
|
||||
|
||||
#include "fixlastfm.h"
|
||||
#include <lastfm/Track>
|
||||
#include <lastfm/ws.h>
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <taglib/speexfile.h>
|
||||
#include <taglib/trueaudiofile.h>
|
||||
|
||||
#include "fixlastfm.h"
|
||||
#include <lastfm/Track>
|
||||
|
||||
#include <QFile>
|
||||
|
Loading…
x
Reference in New Issue
Block a user