CentOS: More build fixes

This commit is contained in:
Markus Goetz 2017-02-08 11:39:28 +01:00
parent e7be4faac8
commit df773ea8bb
2 changed files with 4 additions and 5 deletions

View File

@ -60,9 +60,6 @@
#define DEBUG qDebug() << "SocketApi: "
Q_DECLARE_METATYPE(OCC::SocketListener)
static inline QString removeTrailingSlash(QString path)
{
Q_ASSERT(path.endsWith(QLatin1Char('/')));
@ -113,7 +110,7 @@ class SocketListener {
public:
QIODevice* socket;
SocketListener(QIODevice* socket = nullptr) : socket(socket) { }
SocketListener(QIODevice* socket = 0) : socket(socket) { }
void sendMessage(const QString& message, bool doWait = false) const
{
@ -517,3 +514,5 @@ QString SocketApi::buildRegisterPathMessage(const QString& path)
}
} // namespace OCC
Q_DECLARE_METATYPE(OCC::SocketListener)

View File

@ -226,7 +226,7 @@ public:
etag = file->etag;
return file;
}
return nullptr;
return 0;
}
FileInfo *createDir(const QString &relativePath) {