summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-20 12:38:10 +0200
committerNoel Grandin <noel@peralex.com>2015-01-26 08:42:28 +0200
commitb44cbb26efe1d0b0950b1e1613e131b506dc3876 (patch)
tree9b4d5d99e5dad0971079b997a02a6d96536709ca /include/xmloff
parent26ad60aec69310fecd918f1c2e09056aa4782320 (diff)
new loplugin: change virtual methods to non-virtual
Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/XMLPageExport.hxx2
-rw-r--r--include/xmloff/styleexp.hxx4
-rw-r--r--include/xmloff/txtparae.hxx2
-rw-r--r--include/xmloff/xmlexp.hxx4
-rw-r--r--include/xmloff/xmlimp.hxx4
-rw-r--r--include/xmloff/xmlprmap.hxx4
-rw-r--r--include/xmloff/xmlstyle.hxx2
7 files changed, 11 insertions, 11 deletions
diff --git a/include/xmloff/XMLPageExport.hxx b/include/xmloff/XMLPageExport.hxx
index 70ae41dc768e..f2ec924bcfa5 100644
--- a/include/xmloff/XMLPageExport.hxx
+++ b/include/xmloff/XMLPageExport.hxx
@@ -72,7 +72,7 @@ protected:
SvXMLExport& GetExport() { return rExport; }
- virtual void collectPageMasterAutoStyle(
+ void collectPageMasterAutoStyle(
const ::com::sun::star::uno::Reference <
::com::sun::star::beans::XPropertySet > & rPropSet,
OUString& rPageMasterName );
diff --git a/include/xmloff/styleexp.hxx b/include/xmloff/styleexp.hxx
index 273248565006..7d9d6eedb61f 100644
--- a/include/xmloff/styleexp.hxx
+++ b/include/xmloff/styleexp.hxx
@@ -69,7 +69,7 @@ private:
protected:
- virtual bool exportStyle(
+ bool exportStyle(
const ::com::sun::star::uno::Reference<
::com::sun::star::style::XStyle > & rStyle,
const OUString& rXMLFamily,
@@ -103,7 +103,7 @@ public:
// bool bUsed, sal_uInt16 nFamily = 0,
// const OUString* pPrefix = 0L);
- virtual bool exportDefaultStyle(
+ bool exportDefaultStyle(
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertySet > & xPropSet,
const OUString& rXMLFamily,
diff --git a/include/xmloff/txtparae.hxx b/include/xmloff/txtparae.hxx
index f6a8c8574c88..75be14a19562 100644
--- a/include/xmloff/txtparae.hxx
+++ b/include/xmloff/txtparae.hxx
@@ -597,7 +597,7 @@ public:
bool bIsProgress = false );
// This method exports all automatic styles that have been collected.
- virtual void exportTextAutoStyles();
+ void exportTextAutoStyles();
void exportEvents( const ::com::sun::star::uno::Reference < com::sun::star::beans::XPropertySet > & rPropSet );
diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx
index 111fcae5345f..b8fab9f642da 100644
--- a/include/xmloff/xmlexp.hxx
+++ b/include/xmloff/xmlexp.hxx
@@ -229,10 +229,10 @@ protected:
virtual XMLTextParagraphExport* CreateTextParagraphExport();
virtual XMLShapeExport* CreateShapeExport();
virtual SvXMLAutoStylePoolP* CreateAutoStylePool();
- virtual SchXMLExportHelper* CreateChartExport();
+ SchXMLExportHelper* CreateChartExport();
virtual XMLPageExport* CreatePageExport();
virtual XMLFontAutoStylePool* CreateFontAutoStylePool();
- virtual xmloff::OFormLayerXMLExport* CreateFormExport();
+ xmloff::OFormLayerXMLExport* CreateFormExport();
virtual void GetViewSettings(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps);
virtual void GetConfigurationSettings(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps);
diff --git a/include/xmloff/xmlimp.hxx b/include/xmloff/xmlimp.hxx
index d6b4acbf167c..d4faf1002ec9 100644
--- a/include/xmloff/xmlimp.hxx
+++ b/include/xmloff/xmlimp.hxx
@@ -180,8 +180,8 @@ protected:
inline bool HasShapeImport() const { return mxShapeImport.is(); }
inline void ClearShapeImport() { mxShapeImport = 0; }
- virtual SchXMLImportHelper* CreateChartImport();
- virtual ::xmloff::OFormLayerXMLImport* CreateFormImport();
+ SchXMLImportHelper* CreateChartImport();
+ ::xmloff::OFormLayerXMLImport* CreateFormImport();
void SetFontDecls( XMLFontStylesContext *pFontDecls );
void SetStyles( SvXMLStylesContext *pStyles );
diff --git a/include/xmloff/xmlprmap.hxx b/include/xmloff/xmlprmap.hxx
index 037932dd114d..dda84bde7eec 100644
--- a/include/xmloff/xmlprmap.hxx
+++ b/include/xmloff/xmlprmap.hxx
@@ -93,11 +93,11 @@ public:
/** import/export
This methods calls the respective im/export-method of the respective PropertyHandler. */
- virtual bool exportXML(
+ bool exportXML(
OUString& rStrExpValue, const XMLPropertyState& rProperty,
const SvXMLUnitConverter& rUnitConverter ) const;
- virtual bool importXML(
+ bool importXML(
const OUString& rStrImpValue, XMLPropertyState& rProperty,
const SvXMLUnitConverter& rUnitConverter ) const;
diff --git a/include/xmloff/xmlstyle.hxx b/include/xmloff/xmlstyle.hxx
index 7b8a356aa2a1..73bcfc6ecba1 100644
--- a/include/xmloff/xmlstyle.hxx
+++ b/include/xmloff/xmlstyle.hxx
@@ -249,7 +249,7 @@ public:
GetStylesContainer( sal_uInt16 nFamily ) const;
virtual OUString GetServiceName( sal_uInt16 nFamily ) const;
- virtual ::com::sun::star::uno::Reference < ::com::sun::star::style::XAutoStyleFamily >
+ ::com::sun::star::uno::Reference < ::com::sun::star::style::XAutoStyleFamily >
GetAutoStyles( sal_uInt16 nFamily ) const;
void CopyAutoStylesToDoc();
void CopyStylesToDoc( bool bOverwrite, bool bFinish = true );