From 120fc559be562496063365db8b2d3a2e0719157a Mon Sep 17 00:00:00 2001 From: Gerion Entrup Date: Tue, 12 Dec 2023 23:24:13 +0100 Subject: [PATCH] [map] Fix compilation with GCC for bookmarks_test. Without this commit, it just compiles with Clang. Signed-off-by: Gerion Entrup --- map/map_tests/bookmarks_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/map/map_tests/bookmarks_test.cpp b/map/map_tests/bookmarks_test.cpp index c37f9e66f0..bb85245e70 100644 --- a/map/map_tests/bookmarks_test.cpp +++ b/map/map_tests/bookmarks_test.cpp @@ -134,9 +134,9 @@ char const * kmlString = ""; #define BM_CALLBACKS { \ - []() \ + []() -> StringsBundle const & \ { \ - static StringsBundle dummyBundle; \ + static StringsBundle const dummyBundle; \ return dummyBundle; \ }, \ static_cast(nullptr), \ @@ -1216,9 +1216,9 @@ UNIT_CLASS_TEST(Runner, Bookmarks_Listeners) }; BookmarkManager::Callbacks callbacks( - []() + []() -> StringsBundle const & { - static StringsBundle dummyBundle; + static StringsBundle const dummyBundle; return dummyBundle; }, static_cast(nullptr),