Index: test/FilterEngine.cpp |
diff --git a/test/FilterEngine.cpp b/test/FilterEngine.cpp |
index 800a88411eba3c003371e371a925eb70847377c3..30dad91090f865a6b045e00c289b777073938bd7 100644 |
--- a/test/FilterEngine.cpp |
+++ b/test/FilterEngine.cpp |
@@ -942,8 +942,8 @@ namespace AA_ApiTest |
auto subscriptions = filterEngine->GetListedSubscriptions(); |
for (auto& subscription : subscriptions) |
{ |
- (subscription.IsAA() ? aaSubscription : otherSubscription) = |
- std::unique_ptr<Subscription>(new Subscription(std::move(subscription))); |
+ auto& dstSubscription = subscription.IsAA() ? aaSubscription : otherSubscription; |
+ dstSubscription.reset(new Subscription(std::move(subscription))); |
} |
if (otherSubscriptionsNumber == 1u) |
{ |