diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-05-20 14:10:20 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-05-20 14:10:20 +0300 |
commit | 77683a2762ad941bef08a638cc68a23ad7f43cb0 (patch) | |
tree | ebfd16cc22d0b61ff9b497a6f7fbff32cd6d51eb /src/common | |
parent | 8c12ed65ff8861653020295236cb1795cc5412a1 (diff) | |
parent | c1e3bb8457d77619a1c31217716789e76fd06500 (diff) |
Merge remote-tracking branch 'origin/2.10'
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/asserts.h | 2 | ||||
-rw-r--r-- | src/common/vfs.h | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/common/asserts.h b/src/common/asserts.h index 9f43c532a..5fa4b4da3 100644 --- a/src/common/asserts.h +++ b/src/common/asserts.h @@ -44,7 +44,7 @@ } else { \ } -inline OC_REQUIRED_RESULT bool __OC_ENSURE(bool condition, const char *cond, const char *file, int line, const char *info) +OC_REQUIRED_RESULT inline bool __OC_ENSURE(bool condition, const char *cond, const char *file, int line, const char *info) { if (Q_UNLIKELY(!condition)) { OC_ASSERT_MSG("ENSURE: \"%s\" in file %s, line %d %s", cond, file, line, info); diff --git a/src/common/vfs.h b/src/common/vfs.h index 16c2282d3..6d5141629 100644 --- a/src/common/vfs.h +++ b/src/common/vfs.h @@ -187,17 +187,17 @@ public: virtual bool isHydrating() const = 0; /// Create a new dehydrated placeholder. Called from PropagateDownload. - virtual OC_REQUIRED_RESULT Result<void, QString> createPlaceholder(const SyncFileItem &item) = 0; + OC_REQUIRED_RESULT virtual Result<void, QString> createPlaceholder(const SyncFileItem &item) = 0; /** Discovery hook: even unchanged files may need UPDATE_METADATA. * * For instance cfapi vfs wants local hydrated non-placeholder files to * become hydrated placeholder files. */ - virtual OC_REQUIRED_RESULT bool needsMetadataUpdate(const SyncFileItem &item) = 0; + OC_REQUIRED_RESULT virtual bool needsMetadataUpdate(const SyncFileItem &item) = 0; /// Determine whether the file at the given absolute path is a dehydrated placeholder. - virtual OC_REQUIRED_RESULT bool isDehydratedPlaceholder(const QString &filePath) = 0; + OC_REQUIRED_RESULT virtual bool isDehydratedPlaceholder(const QString &filePath) = 0; /** Similar to isDehydratedPlaceholder() but used from sync discovery. * @@ -206,7 +206,7 @@ public: * * Returning true means that type was fully determined. */ - virtual OC_REQUIRED_RESULT bool statTypeVirtualFile(csync_file_stat_t *stat, void *stat_data) = 0; + OC_REQUIRED_RESULT virtual bool statTypeVirtualFile(csync_file_stat_t *stat, void *stat_data) = 0; /** Sets the pin state for the item at a path. * @@ -217,7 +217,7 @@ public: * * relFilePath is relative to the sync folder. Can be "" for root folder. */ - virtual OC_REQUIRED_RESULT bool setPinState(const QString &relFilePath, PinState state) = 0; + OC_REQUIRED_RESULT virtual bool setPinState(const QString &relFilePath, PinState state) = 0; /** Returns the pin state of an item at a path. * @@ -228,7 +228,7 @@ public: * * Returns none on retrieval error. */ - virtual OC_REQUIRED_RESULT Optional<PinState> pinState(const QString &relFilePath) = 0; + OC_REQUIRED_RESULT virtual Optional<PinState> pinState(const QString &relFilePath) = 0; /** Returns availability status of an item at a path. * @@ -237,7 +237,7 @@ public: * * folderPath is relative to the sync folder. Can be "" for root folder. */ - virtual OC_REQUIRED_RESULT AvailabilityResult availability(const QString &folderPath) = 0; + OC_REQUIRED_RESULT virtual AvailabilityResult availability(const QString &folderPath) = 0; public slots: /** Update in-sync state based on SyncFileStatusTracker signal. @@ -265,7 +265,7 @@ protected: * If the remote metadata changes, the local placeholder's metadata should possibly * change as well. */ - virtual OC_REQUIRED_RESULT Result<ConvertToPlaceholderResult, QString> updateMetadata(const SyncFileItem &item, const QString &filePath, const QString &replacesFile) = 0; + OC_REQUIRED_RESULT virtual Result<ConvertToPlaceholderResult, QString> updateMetadata(const SyncFileItem &item, const QString &filePath, const QString &replacesFile) = 0; /** Setup the plugin for the folder. * |