Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/csync
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-01-05 14:07:48 +0300
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>2021-05-06 10:35:59 +0300
commit98655ef28b1745c13f693bcbdafa753a07f0e2e1 (patch)
tree8620b332905b8e3eb45b54666babf59d6891ba3f /src/csync
parentea3d78aecf8b66d40dec9f3a177e36774ba28708 (diff)
Fix warning by using qsizetype instead of size_t
Signed-off-by: Matthieu Gallien <matthieu_gallien@yahoo.fr>
Diffstat (limited to 'src/csync')
-rw-r--r--src/csync/csync_exclude.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/csync/csync_exclude.cpp b/src/csync/csync_exclude.cpp
index 8c0d6d631..f9968ae7b 100644
--- a/src/csync/csync_exclude.cpp
+++ b/src/csync/csync_exclude.cpp
@@ -73,7 +73,7 @@ OCSYNC_EXPORT void csync_exclude_expand_escapes(QByteArray &input)
line[o++] = line[i];
}
}
- input.resize(OCC::Utility::convertSizeToUint(o));
+ input.resize(OCC::Utility::convertSizeToInt(o));
}
// See http://support.microsoft.com/kb/74496 and
@@ -139,7 +139,7 @@ static CSYNC_EXCLUDE_TYPE _csync_excluded_common(const QString &path, bool exclu
bname = path.midRef(lastSlash + 1);
}
- size_t blen = bname.size();
+ qsizetype blen = bname.size();
// 9 = strlen(".sync_.db")
if (blen >= 9 && bname.at(0) == QLatin1Char('.')) {
if (bname.contains(QLatin1String(".db"))) {