summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/ascii/wrtasc.hxx2
-rw-r--r--sw/source/filter/html/htmltab.cxx2
-rw-r--r--sw/source/filter/ww8/WW8TableInfo.hxx8
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.hxx2
-rw-r--r--sw/source/filter/ww8/docxexport.hxx2
-rw-r--r--sw/source/filter/ww8/writerhelper.hxx4
-rw-r--r--sw/source/filter/ww8/ww8par.hxx6
-rw-r--r--sw/source/filter/ww8/ww8toolbar.hxx2
-rw-r--r--sw/source/filter/xml/xmlimpit.hxx4
9 files changed, 16 insertions, 16 deletions
diff --git a/sw/source/filter/ascii/wrtasc.hxx b/sw/source/filter/ascii/wrtasc.hxx
index fa58306acf04..cf315afdceef 100644
--- a/sw/source/filter/ascii/wrtasc.hxx
+++ b/sw/source/filter/ascii/wrtasc.hxx
@@ -36,7 +36,7 @@ public:
SwASCWriter( const OUString& rFilterName );
virtual ~SwASCWriter();
- OUString GetLineEnd() const { return m_sLineEnd; }
+ const OUString& GetLineEnd() const { return m_sLineEnd; }
};
#endif // _ INCLUDED_SW_SOURCE_FILTER_ASCII_WRTASC_HXX
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index 9c798ab5fcb0..4649e0015b92 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -250,7 +250,7 @@ public:
inline void SetWidth( sal_uInt16 nWidth, bool bRelWidth );
const SvxBrushItem *GetBGBrush() const { return pBGBrush; }
- std::shared_ptr<SvxBoxItem> GetBoxItem() const { return m_pBoxItem; }
+ const std::shared_ptr<SvxBoxItem>& GetBoxItem() const { return m_pBoxItem; }
inline bool GetNumFormat( sal_uInt32& rNumFormat ) const;
inline bool GetValue( double& rValue ) const;
diff --git a/sw/source/filter/ww8/WW8TableInfo.hxx b/sw/source/filter/ww8/WW8TableInfo.hxx
index 24f7cae08a1f..f77c3ec14e95 100644
--- a/sw/source/filter/ww8/WW8TableInfo.hxx
+++ b/sw/source/filter/ww8/WW8TableInfo.hxx
@@ -138,7 +138,7 @@ public:
long right() const { return m_aRect.Right(); }
long width() const { return m_aRect.Width(); }
long height() const { return m_aRect.Height(); }
- SwRect getRect() const { return m_aRect; }
+ const SwRect& getRect() const { return m_aRect; }
WW8TableNodeInfo * getTableNodeInfo() const
{ return m_pNodeInfo; }
unsigned long getFormatFrameWidth() const
@@ -250,9 +250,9 @@ public:
void setWidths(WidthsPtr pGridCols);
void setRowSpans(RowSpansPtr pRowSpans);
- TableBoxVectorPtr getTableBoxVector() const { return m_pTableBoxVector;}
- WidthsPtr getWidths() const { return m_pWidths;}
- RowSpansPtr getRowSpans() const { return m_pRowSpans;}
+ const TableBoxVectorPtr& getTableBoxVector() const { return m_pTableBoxVector;}
+ const WidthsPtr& getWidths() const { return m_pWidths;}
+ const RowSpansPtr& getRowSpans() const { return m_pRowSpans;}
};
class WW8TableCellGrid
diff --git a/sw/source/filter/ww8/docxattributeoutput.hxx b/sw/source/filter/ww8/docxattributeoutput.hxx
index 4089d295eb44..1190d3aa8a45 100644
--- a/sw/source/filter/ww8/docxattributeoutput.hxx
+++ b/sw/source/filter/ww8/docxattributeoutput.hxx
@@ -949,7 +949,7 @@ public:
void SetSerializer( ::sax_fastparser::FSHelperPtr pSerializer );
/// Occasionally need to use this serializer from the outside
- ::sax_fastparser::FSHelperPtr GetSerializer( ) { return m_pSerializer; }
+ const ::sax_fastparser::FSHelperPtr& GetSerializer( ) { return m_pSerializer; }
/// Do we have any footnotes?
bool HasFootnotes() const;
diff --git a/sw/source/filter/ww8/docxexport.hxx b/sw/source/filter/ww8/docxexport.hxx
index 30fe79528a9d..047b497dcce5 100644
--- a/sw/source/filter/ww8/docxexport.hxx
+++ b/sw/source/filter/ww8/docxexport.hxx
@@ -268,7 +268,7 @@ public:
/// Set the document default tab stop.
void setDefaultTabStop( int stop ) { m_aSettings.defaultTabStop = stop; }
- ::sax_fastparser::FSHelperPtr GetFS() { return mpFS; }
+ const ::sax_fastparser::FSHelperPtr& GetFS() { return mpFS; }
void SetFS(::sax_fastparser::FSHelperPtr mpFS);
diff --git a/sw/source/filter/ww8/writerhelper.hxx b/sw/source/filter/ww8/writerhelper.hxx
index 5be0823fed39..df227a8d2f96 100644
--- a/sw/source/filter/ww8/writerhelper.hxx
+++ b/sw/source/filter/ww8/writerhelper.hxx
@@ -189,7 +189,7 @@ namespace ww8
@return
the best size to use to export to word
*/
- const Size GetSize() const { return maSize; }
+ const Size& GetSize() const { return maSize; }
/** The layout size of the contained element
@@ -197,7 +197,7 @@ namespace ww8
@return layout size
*/
- const Size GetLayoutSize() const
+ const Size& GetLayoutSize() const
{
return maLayoutSize;
}
diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx
index a9e1b77872ce..b0b970e1c7b7 100644
--- a/sw/source/filter/ww8/ww8par.hxx
+++ b/sw/source/filter/ww8/ww8par.hxx
@@ -557,7 +557,7 @@ namespace sw
explicit Position(const SwPosition &rPos);
Position(const Position &rPos);
operator SwPosition() const;
- SwNodeIndex GetPtNode() { return maPtNode; };
+ const SwNodeIndex& GetPtNode() { return maPtNode; };
sal_Int32 GetPtContent() { return mnPtContent; };
};
}
@@ -583,8 +583,8 @@ class WW8FieldEntry
SwNodeIndex GetPtNode() { return maStartPos.GetPtNode(); };
sal_Int32 GetPtContent() { return maStartPos.GetPtContent(); };
- OUString GetBookmarkName() { return msBookmarkName;}
- OUString GetBookmarkCode() { return msMarkCode;}
+ const OUString& GetBookmarkName() { return msBookmarkName;}
+ const OUString& GetBookmarkCode() { return msMarkCode;}
void SetBookmarkName(const OUString& bookmarkName);
void SetBookmarkType(const OUString& bookmarkType);
void SetBookmarkCode(const OUString& bookmarkCode);
diff --git a/sw/source/filter/ww8/ww8toolbar.hxx b/sw/source/filter/ww8/ww8toolbar.hxx
index 0f84cf35bb6c..dce6ea9e053c 100644
--- a/sw/source/filter/ww8/ww8toolbar.hxx
+++ b/sw/source/filter/ww8/ww8toolbar.hxx
@@ -18,7 +18,7 @@ class Xst : public TBBase
public:
Xst(){}
bool Read(SvStream &rS) override;
- OUString getString() { return sString; }
+ const OUString& getString() const { return sString; }
#if OSL_DEBUG_LEVEL > 1
virtual void Print( FILE* fp ) override;
#endif
diff --git a/sw/source/filter/xml/xmlimpit.hxx b/sw/source/filter/xml/xmlimpit.hxx
index 0a959a757e83..0a5231a20790 100644
--- a/sw/source/filter/xml/xmlimpit.hxx
+++ b/sw/source/filter/xml/xmlimpit.hxx
@@ -71,7 +71,7 @@ public:
SvXMLUnitConverter const& rUnitConverter) const;
virtual void setMapEntries( SvXMLItemMapEntriesRef rMapEntries );
- inline SvXMLItemMapEntriesRef getMapEntries() const;
+ inline const SvXMLItemMapEntriesRef& getMapEntries() const;
/** This method is called for every item that should be set based
upon an XML attribute value. */
@@ -82,7 +82,7 @@ public:
const SvXMLUnitConverter& rUnitConverter );
};
-inline SvXMLItemMapEntriesRef
+inline const SvXMLItemMapEntriesRef&
SvXMLImportItemMapper::getMapEntries() const
{
return mrMapEntries;