diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-11 09:23:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-11 11:38:57 +0200 |
commit | 9f877f677346968774d4366f105114fe7f36dd69 (patch) | |
tree | d8fb1f3924b5956c8f693acb8df33ba9757f9dc1 /oox/source/ole | |
parent | b9d091e7d4eb3014aa6198f64f414702105b5aab (diff) |
clang-tidy performance-unnecessary-value-param in oox
Change-Id: I1ac86906ea21c00f8d77834c94583be7d9e9974e
Diffstat (limited to 'oox/source/ole')
-rw-r--r-- | oox/source/ole/vbaexport.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx index 2041d50e1bef..35833dc24eec 100644 --- a/oox/source/ole/vbaexport.cxx +++ b/oox/source/ole/vbaexport.cxx @@ -73,7 +73,7 @@ void exportUTF16String(SvStream& rStrm, const OUString& rString) } } -bool isWorkbook(css::uno::Reference<css::uno::XInterface> xInterface) +bool isWorkbook(const css::uno::Reference<css::uno::XInterface>& xInterface) { css::uno::Reference<ooo::vba::excel::XWorkbook> xWorkbook(xInterface, css::uno::UNO_QUERY); return xWorkbook.is(); @@ -762,7 +762,7 @@ void writePROJECTMODULE(SvStream& rStrm, const OUString& name, const sal_uInt16 } // section 2.3.4.2.3 -void writePROJECTMODULES(SvStream& rStrm, css::uno::Reference<css::container::XNameContainer> xNameContainer, const std::vector<sal_Int32>& rLibrayMap) +void writePROJECTMODULES(SvStream& rStrm, const css::uno::Reference<css::container::XNameContainer>& xNameContainer, const std::vector<sal_Int32>& rLibrayMap) { css::uno::Sequence<OUString> aElementNames = xNameContainer->getElementNames(); sal_Int32 n = aElementNames.getLength(); @@ -785,7 +785,7 @@ void writePROJECTMODULES(SvStream& rStrm, css::uno::Reference<css::container::XN } // section 2.3.4.2 -void exportDirStream(SvStream& rStrm, css::uno::Reference<css::container::XNameContainer> xNameContainer, const std::vector<sal_Int32>& rLibraryMap, const OUString& projectName) +void exportDirStream(SvStream& rStrm, const css::uno::Reference<css::container::XNameContainer>& xNameContainer, const std::vector<sal_Int32>& rLibraryMap, const OUString& projectName) { SvMemoryStream aDirStream(4096, 4096); @@ -867,7 +867,7 @@ void exportVBAProjectStream(SvStream& rStrm) } // section 2.3.1 PROJECT Stream -void exportPROJECTStream(SvStream& rStrm, css::uno::Reference<css::container::XNameContainer> xNameContainer, +void exportPROJECTStream(SvStream& rStrm, const css::uno::Reference<css::container::XNameContainer>& xNameContainer, const OUString& projectName, const std::vector<sal_Int32>& rLibraryMap) { css::uno::Sequence<OUString> aElementNames = xNameContainer->getElementNames(); @@ -992,7 +992,7 @@ void exportPROJECTwmStream(SvStream& rStrm, const css::uno::Sequence<OUString>& rStrm.WriteUInt16(0x0000); // terminator } -void getCorrectExportOrder(css::uno::Reference<css::container::XNameContainer> xNameContainer, std::vector<sal_Int32>& rLibraryMap) +void getCorrectExportOrder(const css::uno::Reference<css::container::XNameContainer>& xNameContainer, std::vector<sal_Int32>& rLibraryMap) { css::uno::Sequence<OUString> aElementNames = xNameContainer->getElementNames(); sal_Int32 n = aElementNames.getLength(); |