summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/graphicmimetype.hxx5
-rw-r--r--include/comphelper/storagehelper.hxx2
-rw-r--r--include/oox/export/vmlexport.hxx4
-rw-r--r--include/oox/ppt/layoutfragmenthandler.hxx3
-rw-r--r--include/oox/ppt/presentationfragmenthandler.hxx2
-rw-r--r--include/oox/vml/vmlshapecontext.hxx20
-rw-r--r--include/sfx2/docfile.hxx6
-rw-r--r--include/sfx2/objsh.hxx6
-rw-r--r--include/test/xmltesttools.hxx2
-rw-r--r--include/tools/XmlWalker.hxx2
-rw-r--r--include/vcl/gdimtf.hxx6
-rw-r--r--include/vcl/listctrl.hxx3
-rw-r--r--include/vcl/ppdparser.hxx2
-rw-r--r--include/vcl/print.hxx2
-rw-r--r--include/xmloff/xformsimport.hxx13
15 files changed, 39 insertions, 39 deletions
diff --git a/include/comphelper/graphicmimetype.hxx b/include/comphelper/graphicmimetype.hxx
index 6b8ed4293805..7cf1e88240c0 100644
--- a/include/comphelper/graphicmimetype.hxx
+++ b/include/comphelper/graphicmimetype.hxx
@@ -24,9 +24,10 @@ class COMPHELPER_DLLPUBLIC GraphicMimeTypeHelper
{
public:
static OUString GetMimeTypeForExtension(const OString& rExt);
- static OUString GetMimeTypeForXGraphic(css::uno::Reference<css::graphic::XGraphic> xGraphic);
static OUString
- GetMimeTypeForImageStream(css::uno::Reference<css::io::XInputStream> xInputStream);
+ GetMimeTypeForXGraphic(const css::uno::Reference<css::graphic::XGraphic>& xGraphic);
+ static OUString
+ GetMimeTypeForImageStream(const css::uno::Reference<css::io::XInputStream>& xInputStream);
static OUString GetMimeTypeForConvertDataFormat(ConvertDataFormat convertDataFormat);
};
}
diff --git a/include/comphelper/storagehelper.hxx b/include/comphelper/storagehelper.hxx
index e8fcc0d11cb7..ef82b83effae 100644
--- a/include/comphelper/storagehelper.hxx
+++ b/include/comphelper/storagehelper.hxx
@@ -195,7 +195,7 @@ public:
LifecycleProxy const & rNastiness );
static OUString
- GetODFVersionFromStorage(css::uno::Reference<css::embed::XStorage> xStorage);
+ GetODFVersionFromStorage(const css::uno::Reference<css::embed::XStorage>& xStorage);
};
}
diff --git a/include/oox/export/vmlexport.hxx b/include/oox/export/vmlexport.hxx
index bea395e32ce3..7aa445cfddf9 100644
--- a/include/oox/export/vmlexport.hxx
+++ b/include/oox/export/vmlexport.hxx
@@ -143,7 +143,9 @@ public:
void SetSkipwzName(bool bSkipwzName) { m_bSkipwzName = bSkipwzName; }
void SetHashMarkForType(bool bUseHashMarkForType) { m_bUseHashMarkForType = bUseHashMarkForType; }
- void OverrideShapeIDGen(bool bOverrideShapeIdGeneration, const OString sShapeIDPrefix = OString());
+ void OverrideShapeIDGen(bool bOverrideShapeIdGeneration,
+ const OString& sShapeIDPrefix = OString());
+
protected:
/// Add an attribute to the generated <v:shape/> element.
///
diff --git a/include/oox/ppt/layoutfragmenthandler.hxx b/include/oox/ppt/layoutfragmenthandler.hxx
index a1f0bc9bf7dd..838ba947d1a5 100644
--- a/include/oox/ppt/layoutfragmenthandler.hxx
+++ b/include/oox/ppt/layoutfragmenthandler.hxx
@@ -34,7 +34,8 @@ namespace oox { namespace ppt {
class LayoutFragmentHandler : public SlideFragmentHandler
{
public:
- LayoutFragmentHandler(::oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath, SlidePersistPtr pMasterPersistPtr);
+ LayoutFragmentHandler(::oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath,
+ const SlidePersistPtr& pMasterPersistPtr);
virtual ~LayoutFragmentHandler() override;
virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override;
diff --git a/include/oox/ppt/presentationfragmenthandler.hxx b/include/oox/ppt/presentationfragmenthandler.hxx
index cb7c45412c4e..ab24a8262fae 100644
--- a/include/oox/ppt/presentationfragmenthandler.hxx
+++ b/include/oox/ppt/presentationfragmenthandler.hxx
@@ -50,7 +50,7 @@ private:
void importSlide( const ::oox::core::FragmentHandlerRef& rSlideFragmentHandler,
const oox::ppt::SlidePersistPtr& rPersist );
void importSlide(sal_uInt32 nSlide, bool bFirstSlide, bool bImportNotes);
- void saveThemeToGrabBag(oox::drawingml::ThemePtr pThemePtr, const OUString& sTheme);
+ void saveThemeToGrabBag(const oox::drawingml::ThemePtr& pThemePtr, const OUString& sTheme);
std::vector< OUString > maSlideMasterVector;
std::vector< OUString > maSlidesVector;
diff --git a/include/oox/vml/vmlshapecontext.hxx b/include/oox/vml/vmlshapecontext.hxx
index 7243684f6350..84694e655865 100644
--- a/include/oox/vml/vmlshapecontext.hxx
+++ b/include/oox/vml/vmlshapecontext.hxx
@@ -121,10 +121,8 @@ private:
class ShapeContext : public ShapeTypeContext
{
public:
- explicit ShapeContext(
- ::oox::core::ContextHandler2Helper const & rParent,
- std::shared_ptr<ShapeBase> pShape,
- const AttributeList& rAttribs );
+ explicit ShapeContext(::oox::core::ContextHandler2Helper const& rParent,
+ const std::shared_ptr<ShapeBase>& pShape, const AttributeList& rAttribs);
virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
@@ -154,10 +152,9 @@ private:
class GroupShapeContext : public ShapeContext
{
public:
- explicit GroupShapeContext(
- ::oox::core::ContextHandler2Helper const & rParent,
- std::shared_ptr<GroupShape> pShape,
- const AttributeList& rAttribs );
+ explicit GroupShapeContext(::oox::core::ContextHandler2Helper const& rParent,
+ const std::shared_ptr<GroupShape>& pShape,
+ const AttributeList& rAttribs);
virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
@@ -170,10 +167,9 @@ private:
class RectangleShapeContext : public ShapeContext
{
public:
- explicit RectangleShapeContext(
- ::oox::core::ContextHandler2Helper const & rParent,
- const AttributeList& rAttribs,
- std::shared_ptr<RectangleShape> pShape);
+ explicit RectangleShapeContext(::oox::core::ContextHandler2Helper const& rParent,
+ const AttributeList& rAttribs,
+ const std::shared_ptr<RectangleShape>& pShape);
virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
diff --git a/include/sfx2/docfile.hxx b/include/sfx2/docfile.hxx
index 0fa8fbbae69c..dd2f1304e015 100644
--- a/include/sfx2/docfile.hxx
+++ b/include/sfx2/docfile.hxx
@@ -266,11 +266,11 @@ public:
SAL_DLLPRIVATE bool
SignContents_Impl(bool bSignScriptingContent, bool bHasValidDocumentSignature,
const OUString& aSignatureLineId = OUString(),
- const css::uno::Reference<css::security::XCertificate> xCert
+ const css::uno::Reference<css::security::XCertificate>& xCert
= css::uno::Reference<css::security::XCertificate>(),
- const css::uno::Reference<css::graphic::XGraphic> xValidGraphic
+ const css::uno::Reference<css::graphic::XGraphic>& xValidGraphic
= css::uno::Reference<css::graphic::XGraphic>(),
- const css::uno::Reference<css::graphic::XGraphic> xInvalidGraphic
+ const css::uno::Reference<css::graphic::XGraphic>& xInvalidGraphic
= css::uno::Reference<css::graphic::XGraphic>(),
const OUString& aComment = OUString());
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index 382e4c692e87..1c31ed32d9c6 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -362,9 +362,9 @@ public:
SignatureState GetDocumentSignatureState();
void SignDocumentContent(weld::Window* pDialogParent);
void SignSignatureLine(weld::Window* pDialogParent, const OUString& aSignatureLineId,
- const css::uno::Reference<css::security::XCertificate> xCert,
- const css::uno::Reference<css::graphic::XGraphic> xValidGraphic,
- const css::uno::Reference<css::graphic::XGraphic> xInvalidGraphic,
+ const css::uno::Reference<css::security::XCertificate>& xCert,
+ const css::uno::Reference<css::graphic::XGraphic>& xValidGraphic,
+ const css::uno::Reference<css::graphic::XGraphic>& xInvalidGraphic,
const OUString& aComment);
SignatureState GetScriptingSignatureState();
void SignScriptingContent(weld::Window* pDialogParent);
diff --git a/include/test/xmltesttools.hxx b/include/test/xmltesttools.hxx
index eba5c84a0644..231a3e448fd6 100644
--- a/include/test/xmltesttools.hxx
+++ b/include/test/xmltesttools.hxx
@@ -65,7 +65,7 @@ protected:
const OString& rAttribute = OString(),
const OUString& rExpectedValue = OUString());
void assertXPathAttrs(xmlDocPtr pXmlDoc, const OString& rXPath,
- std::vector<std::pair<OString, OUString>> aPairVector);
+ const std::vector<std::pair<OString, OUString>>& aPairVector);
/**
* Assert that rXPath exists, and returns exactly nNumberOfNodes nodes.
* Useful for checking that we do _not_ export some node (nNumberOfNodes == 0).
diff --git a/include/tools/XmlWalker.hxx b/include/tools/XmlWalker.hxx
index 85507f46583d..28dddcb51778 100644
--- a/include/tools/XmlWalker.hxx
+++ b/include/tools/XmlWalker.hxx
@@ -45,7 +45,7 @@ public:
void parent();
void next();
bool isValid() const;
- OString attribute(OString sName);
+ OString attribute(const OString& sName);
};
} // end tools namespace
diff --git a/include/vcl/gdimtf.hxx b/include/vcl/gdimtf.hxx
index ccf3380c8f5a..a9dc49dccb1e 100644
--- a/include/vcl/gdimtf.hxx
+++ b/include/vcl/gdimtf.hxx
@@ -157,9 +157,9 @@ public:
size_t GetActionSize() const;
- void AddAction( rtl::Reference<MetaAction> pAction );
- void AddAction( rtl::Reference<MetaAction> pAction, size_t nPos );
- void push_back( rtl::Reference<MetaAction> pAction );
+ void AddAction(const rtl::Reference<MetaAction>& pAction);
+ void AddAction(const rtl::Reference<MetaAction>& pAction, size_t nPos);
+ void push_back(const rtl::Reference<MetaAction>& pAction);
/**
* @param pAction takes ownership
* @param nAction the action to replace
diff --git a/include/vcl/listctrl.hxx b/include/vcl/listctrl.hxx
index d640ad2c7ee6..aa825f205b47 100644
--- a/include/vcl/listctrl.hxx
+++ b/include/vcl/listctrl.hxx
@@ -43,7 +43,8 @@ public:
virtual ~ListControl() override;
virtual void dispose() override;
- void addEntry(VclPtr<vcl::Window> xEntry, sal_uInt32 nPos = std::numeric_limits<sal_uInt16>::max());
+ void addEntry(const VclPtr<vcl::Window>& xEntry,
+ sal_uInt32 nPos = std::numeric_limits<sal_uInt16>::max());
std::vector<VclPtr<vcl::Window>> const & getEntries() const;
void deleteEntry(sal_uInt32 nPos);
diff --git a/include/vcl/ppdparser.hxx b/include/vcl/ppdparser.hxx
index b88d859840c8..382756b18e9f 100644
--- a/include/vcl/ppdparser.hxx
+++ b/include/vcl/ppdparser.hxx
@@ -167,7 +167,7 @@ private:
std::unique_ptr<PPDTranslator> m_pTranslator;
PPDParser( const OUString& rFile );
- PPDParser( const OUString& rFile, std::vector<PPDKey*> keys );
+ PPDParser(const OUString& rFile, const std::vector<PPDKey*>& keys);
void parseOrderDependency(const OString& rLine);
void parseOpenUI(const OString& rLine, const OString& rPPDGroup);
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index f0ae63b1cb15..a582fe20a119 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -371,7 +371,7 @@ public:
// by repeated calls to ExecutePrintJob(). Used by mailmerge.
static bool PreparePrintJob( std::shared_ptr<vcl::PrinterController> i_pController,
const JobSetup& i_rInitSetup );
- static bool ExecutePrintJob( std::shared_ptr<vcl::PrinterController> i_pController );
+ static bool ExecutePrintJob(const std::shared_ptr<vcl::PrinterController>& i_pController);
static void FinishPrintJob( const std::shared_ptr<vcl::PrinterController>& i_pController );
/** Implementation detail of PrintJob being asynchronous
diff --git a/include/xmloff/xformsimport.hxx b/include/xmloff/xformsimport.hxx
index 6624a94acd77..99c511790883 100644
--- a/include/xmloff/xformsimport.hxx
+++ b/include/xmloff/xformsimport.hxx
@@ -45,25 +45,24 @@ XMLOFF_DLLPUBLIC SvXMLImportContext* createXFormsModelContext(
* @param pair<XForms binding ID, reference to control>
*/
void bindXFormsValueBinding(
- css::uno::Reference<css::frame::XModel> const &,
- std::pair<css::uno::Reference<css::beans::XPropertySet>,OUString> );
-
+ css::uno::Reference<css::frame::XModel> const&,
+ const std::pair<css::uno::Reference<css::beans::XPropertySet>, OUString>&);
/** perform the actual binding of an XForms-binding as list source with a list control
* @param document which contains the XForms-model(s)
* @param pair<XForms binding ID, reference to control>
*/
void bindXFormsListBinding(
- css::uno::Reference<css::frame::XModel> const &,
- std::pair<css::uno::Reference<css::beans::XPropertySet>,OUString> );
+ css::uno::Reference<css::frame::XModel> const&,
+ const std::pair<css::uno::Reference<css::beans::XPropertySet>, OUString>&);
/** perform the actual binding of an XForms submission with the suitable control
* @param document which contains the XForms-model(s)
* @param pair<XForms submission ID, reference to control>
*/
void bindXFormsSubmission(
- css::uno::Reference<css::frame::XModel> const &,
- std::pair<css::uno::Reference<css::beans::XPropertySet>,OUString> );
+ css::uno::Reference<css::frame::XModel> const&,
+ const std::pair<css::uno::Reference<css::beans::XPropertySet>, OUString>&);
/** applies the given settings to the given XForms container
*/