diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2016-09-16 18:55:28 +0300 |
---|---|---|
committer | Jocelyn Turcotte <jturcotte@woboq.com> | 2016-09-16 18:55:28 +0300 |
commit | a221ac1e4d2b23b214d52d9a46911eab92fcb26a (patch) | |
tree | 7a78601d34d5b6928d0f93e078901973b5441901 /test/syncenginetestutils.h | |
parent | 2b274e9460b6236e0f2e54d3b4cef57eca64e980 (diff) |
Fix unit testing build warning on Linux
The compiler complained about the PathComponent reference on the lambdas comes from the anonymous namespace.
Diffstat (limited to 'test/syncenginetestutils.h')
-rw-r--r-- | test/syncenginetestutils.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h index b6929db91..76b2855a2 100644 --- a/test/syncenginetestutils.h +++ b/test/syncenginetestutils.h @@ -18,8 +18,7 @@ static const QUrl sRootUrl("owncloud://somehost/owncloud/remote.php/webdav/"); -namespace { -QString generateEtag() { +static QString generateEtag() { return QString::number(QDateTime::currentDateTime().toMSecsSinceEpoch(), 16); } @@ -35,7 +34,6 @@ public: QString pathRoot() const { return first(); } QString fileName() const { return last(); } }; -} class FileModifier { |