summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/SettingsTable.cxx2
-rw-r--r--writerfilter/source/dmapper/SettingsTable.hxx2
-rw-r--r--writerfilter/source/dmapper/StyleSheetTable.cxx2
-rw-r--r--writerfilter/source/dmapper/StyleSheetTable.hxx2
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.hxx4
5 files changed, 6 insertions, 6 deletions
diff --git a/writerfilter/source/dmapper/SettingsTable.cxx b/writerfilter/source/dmapper/SettingsTable.cxx
index 8be0c6c0f114..665f61568109 100644
--- a/writerfilter/source/dmapper/SettingsTable.cxx
+++ b/writerfilter/source/dmapper/SettingsTable.cxx
@@ -637,7 +637,7 @@ css::uno::Sequence<css::beans::PropertyValue> SettingsTable::GetDocumentProtecti
return m_pImpl->m_DocumentProtection.toSequence();
}
-OUString SettingsTable::GetCurrentDatabaseDataSource() const
+const OUString & SettingsTable::GetCurrentDatabaseDataSource() const
{
return m_pImpl->m_sCurrentDatabaseDataSource;
}
diff --git a/writerfilter/source/dmapper/SettingsTable.hxx b/writerfilter/source/dmapper/SettingsTable.hxx
index 8e7136989b47..5fdcb97ac9ee 100644
--- a/writerfilter/source/dmapper/SettingsTable.hxx
+++ b/writerfilter/source/dmapper/SettingsTable.hxx
@@ -88,7 +88,7 @@ class SettingsTable : public LoggedProperties, public LoggedTable
sal_Int32 GetWordCompatibilityMode() const;
- OUString GetCurrentDatabaseDataSource() const;
+ const OUString & GetCurrentDatabaseDataSource() const;
private:
// Properties
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index bfd535949bf4..54b072768558 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -1237,7 +1237,7 @@ const StyleSheetEntryPtr StyleSheetTable::FindDefaultParaStyle()
return FindStyleSheetByISTD( m_pImpl->m_sDefaultParaStyleName );
}
-const StyleSheetEntryPtr StyleSheetTable::GetCurrentEntry()
+const StyleSheetEntryPtr & StyleSheetTable::GetCurrentEntry()
{
return m_pImpl->m_pCurrentEntry;
}
diff --git a/writerfilter/source/dmapper/StyleSheetTable.hxx b/writerfilter/source/dmapper/StyleSheetTable.hxx
index 686779acbd71..da9987dce265 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.hxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.hxx
@@ -106,7 +106,7 @@ public:
/// Returns the default character properties.
PropertyMapPtr const & GetDefaultCharProps();
- const StyleSheetEntryPtr GetCurrentEntry();
+ const StyleSheetEntryPtr & GetCurrentEntry();
private:
// Properties
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.hxx b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
index f7a263c2bc11..0c69cc9a4563 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.hxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
@@ -420,9 +420,9 @@ public:
}
void setPropName(const OUString& rPropName) { m_aPropName = rPropName; }
- OUString getPropName() const { return m_aPropName; }
+ OUString const& getPropName() const { return m_aPropName; }
void setPropType(const css::uno::Type& rPropType) { m_aPropType = rPropType; }
- css::uno::Type getPropType() const { return m_aPropType; }
+ css::uno::Type const& getPropType() const { return m_aPropType; }
void setTableRowWidthAfter(int nTableRowWidthAfter)
{
m_nTableRowWidthAfter = nTableRowWidthAfter;