libsync: Fix build error with TOKEN_AUTH_ONLY
authorGerhard Gappmeier <gerhard.gappmeier@ascolab.com>
Thu, 8 Nov 2018 17:17:29 +0000 (18:17 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:18 +0000 (10:58 +0100)
When enabling TOKEN_AUTH_ONLY, the code path using QPainter is disabled.
So we also don't need the includes.
This header is not available for Remarkable.

src/libsync/networkjobs.cpp

index ccedf4d28194b925b788ddad7e680fab583cad48..18f9097e39521e787a6b5e839200fe5dd301040e 100644 (file)
 #include <QCoreApplication>
 #include <QJsonDocument>
 #include <QJsonObject>
+#ifndef TOKEN_AUTH_ONLY
 #include <QPainter>
 #include <QPainterPath>
+#endif
 
 #include "networkjobs.h"
 #include "account.h"