зеркало из https://github.com/nextcloud/desktop.git
Clean up FileProviderSocketServer header, remove unnecessary ifdefs
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
22fc43e7b0
Коммит
578e8ea2d9
|
@ -15,6 +15,7 @@
|
|||
#include "fileprovidersocketserver.h"
|
||||
|
||||
#include <QLocalSocket>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#include "fileprovidersocketcontroller.h"
|
||||
|
||||
|
@ -27,9 +28,7 @@ Q_LOGGING_CATEGORY(lcFileProviderSocketServer, "nextcloud.gui.macos.fileprovider
|
|||
FileProviderSocketServer::FileProviderSocketServer(QObject *parent)
|
||||
: QObject{parent}
|
||||
{
|
||||
#ifdef Q_OS_MACOS
|
||||
_socketPath = fileProviderSocketPath();
|
||||
#endif
|
||||
startListening();
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
#include <QObject>
|
||||
#include <QLocalServer>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
namespace OCC {
|
||||
|
||||
|
@ -25,9 +24,7 @@ namespace Mac {
|
|||
class FileProviderSocketController;
|
||||
using FileProviderSocketControllerPtr = QSharedPointer<FileProviderSocketController>;
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
QString fileProviderSocketPath();
|
||||
#endif
|
||||
|
||||
class FileProviderSocketServer : public QObject
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче