summaryrefslogtreecommitdiffstats
path: root/common/query.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-06 19:13:59 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-06 19:13:59 +0100
commit4de82d8eafdf0ed9fe48f6bc6627c14332f0fc3c (patch)
tree94286d1f64df4bdd0959337fcb4a605516f55077 /common/query.h
parentcd206b3a720807301f1b1707698c4a405da89217 (diff)
downloadsink-4de82d8eafdf0ed9fe48f6bc6627c14332f0fc3c.tar.gz
sink-4de82d8eafdf0ed9fe48f6bc6627c14332f0fc3c.zip
Fix copy constructor of SyncScope
We used to loose the resource list and thus erroneously sync all available resources.
Diffstat (limited to 'common/query.h')
-rw-r--r--common/query.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/query.h b/common/query.h
index 8f69cb7..b69639b 100644
--- a/common/query.h
+++ b/common/query.h
@@ -455,6 +455,7 @@ public:
455 } 455 }
456 456
457private: 457private:
458 friend class SyncScope;
458 int mLimit; 459 int mLimit;
459 Flags mFlags; 460 Flags mFlags;
460 Filter mResourceFilter; 461 Filter mResourceFilter;
@@ -467,8 +468,9 @@ public:
467 468
468 SyncScope() = default; 469 SyncScope() = default;
469 470
470 SyncScope(const QueryBase &other) 471 SyncScope(const Query &other)
471 : QueryBase(other) 472 : QueryBase(other),
473 mResourceFilter(other.mResourceFilter)
472 { 474 {
473 475
474 } 476 }