summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/DocumentMetadataAccess.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-15 15:21:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-16 09:04:55 +0200
commit196f46db1b5dfddda6972a6b738d8b77b6c3601e (patch)
tree3264b328e2479c38f08e7db7e2f1e93df7c3539a /sfx2/source/doc/DocumentMetadataAccess.cxx
parent19b4520fbfa8080821021586d8fe3428a2a893af (diff)
loplugin:constantparam
Change-Id: I0110e0c662004456e4bc8f8082e2e2fea59e0148 Reviewed-on: https://gerrit.libreoffice.org/54385 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/doc/DocumentMetadataAccess.cxx')
-rw-r--r--sfx2/source/doc/DocumentMetadataAccess.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sfx2/source/doc/DocumentMetadataAccess.cxx b/sfx2/source/doc/DocumentMetadataAccess.cxx
index bf765366e27f..ff6ad06ea6a7 100644
--- a/sfx2/source/doc/DocumentMetadataAccess.cxx
+++ b/sfx2/source/doc/DocumentMetadataAccess.cxx
@@ -478,7 +478,6 @@ handleError( ucb::InteractiveAugmentedIOException const & i_rException,
e.g. ODB files seem to only have content.xml */
static void
collectFilesFromStorage(uno::Reference<embed::XStorage> const& i_xStorage,
- const OUString& i_Path,
std::set< OUString > & o_rFiles)
{
static OUString content(s_content);
@@ -487,12 +486,12 @@ collectFilesFromStorage(uno::Reference<embed::XStorage> const& i_xStorage,
if (i_xStorage->hasByName(content) &&
i_xStorage->isStreamElement(content))
{
- o_rFiles.insert(i_Path + content);
+ o_rFiles.insert(content);
}
if (i_xStorage->hasByName(styles) &&
i_xStorage->isStreamElement(styles))
{
- o_rFiles.insert(i_Path + styles);
+ o_rFiles.insert(styles);
}
} catch (const uno::Exception &) {
SAL_WARN("sfx", "collectFilesFromStorage: exception?");
@@ -1055,8 +1054,7 @@ void SAL_CALL DocumentMetadataAccess::loadMetadataFromStorage(
initLoading(*m_pImpl, i_xStorage, i_xBaseURI, i_xHandler);
std::set< OUString > StgFiles;
- collectFilesFromStorage(i_xStorage,
- "", StgFiles);
+ collectFilesFromStorage(i_xStorage, StgFiles);
std::vector< OUString > MfstMetadataFiles;