From 440c23ee678442fc64aa9fcca13b137738e10a04 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 8 May 2023 12:18:42 +0200 Subject: merge GalleryStorageLocations with GalleryBinaryStorageLocations Change-Id: Icf9a942047f212132d7b543cd1b1a857f8f95223 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151551 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/qa/unit/gallery/test_gallery.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'svx/qa') diff --git a/svx/qa/unit/gallery/test_gallery.cxx b/svx/qa/unit/gallery/test_gallery.cxx index cf868bd219fd..ac6a1b6ee875 100644 --- a/svx/qa/unit/gallery/test_gallery.cxx +++ b/svx/qa/unit/gallery/test_gallery.cxx @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include @@ -256,8 +256,7 @@ void GalleryObjTest::TestGalleryThemeEntry() myThemeName); // Check URLs - GalleryBinaryStorageLocations& aGalleryBinaryStorageLocations - = dynamic_cast(mpThemeEntry->getGalleryStorageLocations()); + GalleryStorageLocations& rGalleryStorageLocations = mpThemeEntry->getGalleryStorageLocations(); INetURLObject aURL(aGalleryURL); aURL.Append(myThemeName); INetURLObject aThemeURL(aURL), aSdvURL(aURL), aSdgURL(aURL), aStrURL(aURL); @@ -266,19 +265,19 @@ void GalleryObjTest::TestGalleryThemeEntry() aSdgURL.setExtension(u"sdg"); aStrURL.setExtension(u"str"); CPPUNIT_ASSERT_EQUAL_MESSAGE("Theme URL doesn't match", - aGalleryBinaryStorageLocations.GetThmURL().GetMainURL( + rGalleryStorageLocations.GetThmURL().GetMainURL( INetURLObject::DecodeMechanism::Unambiguous), aThemeURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); CPPUNIT_ASSERT_EQUAL_MESSAGE("Sdv URL doesn't match", - aGalleryBinaryStorageLocations.GetSdvURL().GetMainURL( + rGalleryStorageLocations.GetSdvURL().GetMainURL( INetURLObject::DecodeMechanism::Unambiguous), aSdvURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); CPPUNIT_ASSERT_EQUAL_MESSAGE("Sdg URL doesn't match", - aGalleryBinaryStorageLocations.GetSdgURL().GetMainURL( + rGalleryStorageLocations.GetSdgURL().GetMainURL( INetURLObject::DecodeMechanism::Unambiguous), aSdgURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); CPPUNIT_ASSERT_EQUAL_MESSAGE("Str URL doesn't match", - aGalleryBinaryStorageLocations.GetStrURL().GetMainURL( + rGalleryStorageLocations.GetStrURL().GetMainURL( INetURLObject::DecodeMechanism::Unambiguous), aStrURL.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous)); } -- cgit