diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-10-10 23:56:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-10-11 08:13:33 +0200 |
commit | 754cff7a3f5e6c7a8ff0aa39cc94c3246d7125ee (patch) | |
tree | b76b5122a737e59ddbb8946b8668df17761d2140 /sd | |
parent | cd3c315e5a5c7d0a961418cfce3b1683f9ab5ad9 (diff) |
Avoid error with old Clang
<https://ci.libreoffice.org/job/lo_ubsan/1065/console>:
> [build CXX] chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx
> /home/tdf/lode/jenkins/workspace/lo_ubsan/sd/qa/unit/dialogs-test.cxx:430:41: error: default initialization of an object of const type 'const std::vector<OUString>' without a user-provided default constructor
> const std::vector<OUString> aPageNames;
> ^
> {}
> 1 error generated.
Change-Id: I543ba3420e1997f21bc2c83c632fbd93ef016459
Reviewed-on: https://gerrit.libreoffice.org/61638
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/dialogs-test.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/qa/unit/dialogs-test.cxx b/sd/qa/unit/dialogs-test.cxx index 96c4d6807424..71f4c742537b 100644 --- a/sd/qa/unit/dialogs-test.cxx +++ b/sd/qa/unit/dialogs-test.cxx @@ -427,7 +427,6 @@ VclPtr<VclAbstractDialog> SdDialogsTest::createDialogByID(sal_uInt32 nID) case 13: { // CreateSdStartPresentationDlg(weld::Window* pWindow, const SfxItemSet& rInAttrs, const std::vector<OUString> &rPageNames, SdCustomShowList* pCSList) override; - const std::vector<OUString> aPageNames; SdDrawDocument* pDrawDoc = getSdXImpressDocument()->GetDoc(); CPPUNIT_ASSERT(pDrawDoc); SfxItemSet aDlgSet(pDrawDoc->GetItemPool(), svl::Items<ATTR_PRESENT_START, ATTR_PRESENT_END>{}); @@ -451,7 +450,7 @@ VclPtr<VclAbstractDialog> SdDialogsTest::createDialogByID(sal_uInt32 nID) pRetval = getSdAbstractDialogFactory()->CreateSdStartPresentationDlg( pWin ? pWin->GetFrameWeld() : nullptr, aDlgSet, - aPageNames, + std::vector<OUString>(), nullptr); break; } |