summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-08 17:14:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-08 17:14:34 +0200
commit4d49c9601c9b3e26a336e08e057d299895683480 (patch)
tree469e3c18c2167db45cffec0a21a99abda8406c54 /sw
parent46c7ecf760bbea6541507c319e8e722f9b4ec712 (diff)
Let loplugin:passstuffbyref also look at fn defn not preceded by any decl
Change-Id: I752bc96d2d521d790e919283cabb14b6526626f4
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/fmtclds.hxx2
-rw-r--r--sw/source/core/access/accpara.cxx2
-rw-r--r--sw/source/filter/ww8/ww8par.hxx2
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/fmtclds.hxx b/sw/inc/fmtclds.hxx
index 9938f765231f..89327b553d67 100644
--- a/sw/inc/fmtclds.hxx
+++ b/sw/inc/fmtclds.hxx
@@ -96,7 +96,7 @@ public:
virtual ~SwFormatCol();
//#i120133#
sal_Int16 GetAdjustValue() const { return m_aWidthAdjustValue; }
- void SetAdjustValue( const sal_Int16& n ) { m_aWidthAdjustValue = n; }
+ void SetAdjustValue( sal_Int16 n ) { m_aWidthAdjustValue = n; }
SwFormatCol& operator=( const SwFormatCol& );
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index e8b502a31fc9..beef3e26026a 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -1426,7 +1426,7 @@ struct IndexCompare
{
const PropertyValue* pValues;
explicit IndexCompare( const PropertyValue* pVals ) : pValues(pVals) {}
- bool operator() ( const sal_Int32& a, const sal_Int32& b ) const
+ bool operator() ( sal_Int32 a, sal_Int32 b ) const
{
return (pValues[a].Name < pValues[b].Name);
}
diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx
index 8d0d0ebb9d2f..250bbc8d113a 100644
--- a/sw/source/filter/ww8/ww8par.hxx
+++ b/sw/source/filter/ww8/ww8par.hxx
@@ -512,7 +512,7 @@ public:
const OUString& GetHlink() const { return maHlink; }
void SetTarFrame( const OUString& rTarFrame ) { maTarFrame = rTarFrame; }
const OUString& GetTarFrame() const { return maTarFrame; }
- void SetShapeId( const sal_Int32& rShapeId ) { mnShapeId = rShapeId; }
+ void SetShapeId( sal_Int32 rShapeId ) { mnShapeId = rShapeId; }
const sal_Int32& GetShapeId() const { return mnShapeId; }
void SetName( const OUString& rName ) { maNameStr = rName; }
const OUString& GetName() const { return maNameStr; }
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index d962b3862c87..92782781756c 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -1026,7 +1026,7 @@ static SfxObjectShell* lcl_CreateWorkingDocument(
uno::Reference< mail::XMailMessage > lcl_CreateMailFromDoc(
const SwMergeDescriptor &rMergeDescriptor,
const OUString &sFileURL, const OUString &sMailRecipient,
- const OUString &sMailBodyMimeType, const rtl_TextEncoding &sMailEncoding,
+ const OUString &sMailBodyMimeType, rtl_TextEncoding sMailEncoding,
const OUString &sAttachmentMimeType )
{
SwMailMessage* pMessage = new SwMailMessage;