Skip to content

Commit

Permalink
Fix clash with std header
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Jul 12, 2022
1 parent b60c6b4 commit 07c2e23
Show file tree
Hide file tree
Showing 26 changed files with 93 additions and 79 deletions.
3 changes: 2 additions & 1 deletion src/gui/accountsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "configfile.h"
#include "creds/abstractcredentials.h"
#include "creds/httpcredentialsgui.h"
#include "filesystem.h"
#include "folderman.h"
#include "folderstatusdelegate.h"
#include "folderstatusmodel.h"
Expand All @@ -35,6 +34,8 @@
#include "theme.h"
#include "tooltipupdater.h"

#include "libsync/filesystemutil.h"

#include "folderwizard/folderwizard.h"

#include <math.h>
Expand Down
3 changes: 2 additions & 1 deletion src/gui/folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "configfile.h"
#include "creds/abstractcredentials.h"
#include "csync_exclude.h"
#include "filesystem.h"
#include "folder.h"
#include "folderman.h"
#include "localdiscoverytracker.h"
Expand All @@ -39,6 +38,8 @@
#include "syncrunfilelog.h"
#include "theme.h"

#include "libsync/filesystemutil.h"

#include <QTimer>
#include <QUrl>
#include <QDir>
Expand Down
3 changes: 2 additions & 1 deletion src/gui/folderman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "application.h"
#include "common/asserts.h"
#include "configfile.h"
#include "filesystem.h"
#include "folder.h"
#include "lockwatcher.h"
#include "selectivesyncdialog.h"
Expand All @@ -28,6 +27,8 @@
#include "theme.h"
#include <syncengine.h>

#include "libsync/filesystemutil.h"

#ifdef Q_OS_MAC
#include <CoreServices/CoreServices.h>
#endif
Expand Down
3 changes: 2 additions & 1 deletion src/gui/folderwatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
#endif

#include "folder.h"
#include "filesystem.h"

#include "libsync/filesystemutil.h"

using namespace std::chrono_literals;

Expand Down
4 changes: 3 additions & 1 deletion src/gui/folderwatcher_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

#include "common/asserts.h"
#include "common/utility.h"
#include "filesystem.h"

#include "libsync/filesystemutil.h"

#include "folderwatcher.h"
#include "folderwatcher_win.h"

Expand Down
3 changes: 2 additions & 1 deletion src/gui/lockwatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
*/

#include "lockwatcher.h"
#include "filesystem.h"

#include "libsync/filesystemutil.h"

#include <QLoggingCategory>
#include <QTimer>
Expand Down
3 changes: 2 additions & 1 deletion src/gui/lockwatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
#pragma once

#include "config.h"
#include "filesystem.h"

#include "libsync/filesystemutil.h"

#include <QList>
#include <QObject>
Expand Down
3 changes: 2 additions & 1 deletion src/gui/socketapi/socketapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "common/version.h"
#include "config.h"
#include "configfile.h"
#include "filesystem.h"
#include "folder.h"
#include "folderman.h"
#include "guiutility.h"
Expand All @@ -37,6 +36,8 @@
#include "syncfileitem.h"
#include "theme.h"

#include "libsync/filesystemutil.h"

#include <array>
#include <QBitArray>
#include <QUrl>
Expand Down
6 changes: 4 additions & 2 deletions src/gui/syncrunfilelog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@

#include "syncrunfilelog.h"
#include "common/utility.h"
#include "filesystem.h"
#include <qfileinfo.h>

#include "libsync/filesystemutil.h"

#include <QFileInfo>

namespace {
auto dateTimeStr(const QDateTime &dt = QDateTime::currentDateTimeUtc())
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set(libsync_SRCS
cookiejar.cpp
discovery.cpp
discoveryphase.cpp
filesystem.cpp
filesystemutil.cpp
httplogger.cpp
jobqueue.cpp
logger.cpp
Expand Down
10 changes: 5 additions & 5 deletions src/libsync/filesystem.cpp → src/libsync/filesystemutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
* for more details.
*/

#include "filesystem.h"
#include "filesystemutil.h"

#include "common/utility.h"
#include <QFile>
#include <QFileInfo>
#include <QCoreApplication>
#include <QDir>
#include <QDirIterator>
#include <QCoreApplication>
#include <QFile>
#include <QFileInfo>

#include "csync.h"
#include "vio/csync_vio_local.h"
Expand Down Expand Up @@ -50,7 +50,7 @@ bool FileSystem::fileEquals(const QString &fn1, const QString &fn2)
QByteArray buffer1(BufferSize, 0);
QByteArray buffer2(BufferSize, 0);
// the files have the same size, compare all of it
while(!f1.atEnd()){
while (!f1.atEnd()) {
f1.read(buffer1.data(), BufferSize);
f2.read(buffer2.data(), BufferSize);
if (buffer1 != buffer2) {
Expand Down
3 changes: 0 additions & 3 deletions src/libsync/filesystem.h → src/libsync/filesystemutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@

#pragma once

#include "config.h"

#include <QString>
#include <ctime>
#include <functional>

#include <owncloudlib.h>
Expand Down
3 changes: 2 additions & 1 deletion src/libsync/owncloudpropagator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "common/syncjournalfilerecord.h"
#include "common/utility.h"
#include "discoveryphase.h"
#include "filesystem.h"
#include "filesystemutil.h"
#include "propagatedownload.h"
#include "propagateremotedelete.h"
#include "propagateremotemkdir.h"
Expand All @@ -29,6 +29,7 @@
#include "propagateuploadtus.h"
#include "propagatorjobs.h"


#ifdef Q_OS_WIN
#include <winbase.h>
#include <windef.h>
Expand Down
14 changes: 7 additions & 7 deletions src/libsync/propagatedownload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
* for more details.
*/

#include "config.h"
#include "owncloudpropagator_p.h"
#include "propagatedownload.h"
#include "networkjobs.h"
#include "account.h"
#include "common/asserts.h"
#include "common/checksums.h"
#include "common/syncjournaldb.h"
#include "common/syncjournalfilerecord.h"
#include "common/utility.h"
#include "filesystem.h"
#include "propagatorjobs.h"
#include "common/checksums.h"
#include "common/asserts.h"
#include "common/vfs.h"
#include "config.h"
#include "filesystemutil.h"
#include "networkjobs.h"
#include "owncloudpropagator_p.h"
#include "propagatorjobs.h"

#include <QDir>
#include <QFileInfo>
Expand Down
10 changes: 5 additions & 5 deletions src/libsync/propagateremotemove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
*/

#include "propagateremotemove.h"
#include "propagatorjobs.h"
#include "owncloudpropagator_p.h"
#include "account.h"
#include "common/syncjournalfilerecord.h"
#include "filesystem.h"
#include "common/asserts.h"
#include "common/syncjournalfilerecord.h"
#include "filesystemutil.h"
#include "owncloudpropagator_p.h"
#include "propagatorjobs.h"
#include <QDir>
#include <QFile>
#include <QStringList>
#include <QDir>

namespace OCC {

Expand Down
14 changes: 7 additions & 7 deletions src/libsync/propagateupload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
* for more details.
*/

#include "config.h"
#include "propagateupload.h"
#include "owncloudpropagator_p.h"
#include "networkjobs.h"
#include "account.h"
#include "common/asserts.h"
#include "common/checksums.h"
#include "common/syncjournaldb.h"
#include "common/syncjournalfilerecord.h"
#include "common/utility.h"
#include "filesystem.h"
#include "config.h"
#include "filesystemutil.h"
#include "networkjobs.h"
#include "owncloudpropagator_p.h"
#include "propagateremotedelete.h"
#include "propagatorjobs.h"
#include "common/checksums.h"
#include "syncengine.h"
#include "propagateremotedelete.h"
#include "common/asserts.h"

#include <QNetworkAccessManager>
#include <QFileInfo>
Expand Down
16 changes: 8 additions & 8 deletions src/libsync/propagateuploadng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
* for more details.
*/

#include "config.h"
#include "propagateupload.h"
#include "owncloudpropagator_p.h"
#include "networkjobs.h"
#include "account.h"
#include "common/asserts.h"
#include "common/syncjournaldb.h"
#include "common/syncjournalfilerecord.h"
#include "common/utility.h"
#include "filesystem.h"
#include "config.h"
#include "filesystemutil.h"
#include "networkjobs.h"
#include "owncloudpropagator_p.h"
#include "propagateremotedelete.h"
#include "propagateremotemove.h"
#include "propagateupload.h"
#include "propagatorjobs.h"
#include "syncengine.h"
#include "propagateremotemove.h"
#include "propagateremotedelete.h"
#include "common/asserts.h"

#include <QDir>
#include <QFileInfo>
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/propagateuploadtus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "common/syncjournaldb.h"
#include "common/syncjournalfilerecord.h"
#include "common/utility.h"
#include "filesystem.h"
#include "filesystemutil.h"
#include "httplogger.h"
#include "networkjobs.h"
#include "owncloudpropagator_p.h"
Expand Down
16 changes: 8 additions & 8 deletions src/libsync/propagateuploadv1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
* for more details.
*/

#include "config.h"
#include "propagateupload.h"
#include "owncloudpropagator_p.h"
#include "networkjobs.h"
#include "account.h"
#include "common/asserts.h"
#include "common/checksums.h"
#include "common/syncjournaldb.h"
#include "common/syncjournalfilerecord.h"
#include "common/utility.h"
#include "filesystem.h"
#include "config.h"
#include "filesystemutil.h"
#include "networkjobs.h"
#include "owncloudpropagator_p.h"
#include "propagateremotedelete.h"
#include "propagateupload.h"
#include "propagatorjobs.h"
#include "common/checksums.h"
#include "syncengine.h"
#include "propagateremotedelete.h"
#include "common/asserts.h"

#include <QDir>
#include <QFileInfo>
Expand Down
16 changes: 8 additions & 8 deletions src/libsync/propagatorjobs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
*/

#include "propagatorjobs.h"
#include "common/syncjournaldb.h"
#include "common/syncjournalfilerecord.h"
#include "common/utility.h"
#include "filesystemutil.h"
#include "owncloudpropagator.h"
#include "owncloudpropagator_p.h"
#include "propagateremotemove.h"
#include "common/utility.h"
#include "common/syncjournaldb.h"
#include "common/syncjournalfilerecord.h"
#include "filesystem.h"
#include <qfile.h>
#include <QCoreApplication>
#include <QDateTime>
#include <qdir.h>
#include <qdiriterator.h>
#include <qtemporaryfile.h>
#include <qfile.h>
#include <qsavefile.h>
#include <QDateTime>
#include <qstack.h>
#include <QCoreApplication>
#include <qtemporaryfile.h>

#include <time.h>

Expand Down
16 changes: 8 additions & 8 deletions src/libsync/syncengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@

#include "syncengine.h"
#include "account.h"
#include "owncloudpropagator.h"
#include "common/asserts.h"
#include "common/syncfilestatus.h"
#include "common/syncjournaldb.h"
#include "common/syncjournalfilerecord.h"
#include "discoveryphase.h"
#include "common/vfs.h"
#include "creds/abstractcredentials.h"
#include "common/syncfilestatus.h"
#include "csync_exclude.h"
#include "filesystem.h"
#include "propagateremotedelete.h"
#include "propagatedownload.h"
#include "common/asserts.h"
#include "discovery.h"
#include "common/vfs.h"
#include "discoveryphase.h"
#include "filesystemutil.h"
#include "owncloudpropagator.h"
#include "propagatedownload.h"
#include "propagateremotedelete.h"

#ifdef Q_OS_WIN
#include <windows.h>
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/syncfileitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "syncfileitem.h"
#include "common/syncjournalfilerecord.h"
#include "common/utility.h"
#include "filesystem.h"
#include "filesystemutil.h"

#include "csync/vio/csync_vio_local.h"

Expand Down

0 comments on commit 07c2e23

Please sign in to comment.