From d23cf2cceda059482452b0161f56b0c7fe406287 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 15 Jun 2021 12:05:50 +0200 Subject: [PATCH] unittest: Fix build on macOS We are still using our own Utils::variant and corresponding functions on macOS. Amends 90cc7fed3be Change-Id: I829bdd3a4cc03f994a825ee3a962d4eb523a3bf1 Reviewed-by: Marco Bubke --- tests/unit/unittest/projectstorage-test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/unittest/projectstorage-test.cpp b/tests/unit/unittest/projectstorage-test.cpp index 385fb0e6714..41b73da57b1 100644 --- a/tests/unit/unittest/projectstorage-test.cpp +++ b/tests/unit/unittest/projectstorage-test.cpp @@ -82,7 +82,7 @@ MATCHER_P5(IsStorageType, return type.importId == importId && type.typeName == typeName && type.accessSemantics == accessSemantics && type.sourceId == sourceId - && std::visit([&](auto &&v) -> bool { return v.name == prototype.name; }, type.prototype); + && Utils::visit([&](auto &&v) -> bool { return v.name == prototype.name; }, type.prototype); } MATCHER_P4(IsStorageTypeWithInvalidSourceId, @@ -118,7 +118,7 @@ MATCHER_P3(IsPropertyDeclaration, const Storage::PropertyDeclaration &propertyDeclaration = arg; return propertyDeclaration.name == name - && std::visit([&](auto &&v) -> bool { return v.name == typeName.name; }, + && Utils::visit([&](auto &&v) -> bool { return v.name == typeName.name; }, propertyDeclaration.typeName) && propertyDeclaration.traits == traits; }