From 70cc2b191b95fbc210bc1f0f6a7159f341894f0f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 26 Mar 2014 16:37:00 +0100 Subject: First batch of adding SAL_OVERRRIDE to overriding function declarations ...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a --- xmloff/source/xforms/SchemaContext.hxx | 4 ++-- xmloff/source/xforms/SchemaRestrictionContext.hxx | 4 ++-- xmloff/source/xforms/SchemaSimpleTypeContext.hxx | 4 ++-- xmloff/source/xforms/TokenContext.hxx | 6 +++--- xmloff/source/xforms/XFormsBindContext.hxx | 6 +++--- xmloff/source/xforms/XFormsInstanceContext.hxx | 8 ++++---- xmloff/source/xforms/XFormsModelContext.hxx | 6 +++--- xmloff/source/xforms/XFormsSubmissionContext.hxx | 4 ++-- 8 files changed, 21 insertions(+), 21 deletions(-) (limited to 'xmloff/source/xforms') diff --git a/xmloff/source/xforms/SchemaContext.hxx b/xmloff/source/xforms/SchemaContext.hxx index 6740fbca971f..7d4e3327b489 100644 --- a/xmloff/source/xforms/SchemaContext.hxx +++ b/xmloff/source/xforms/SchemaContext.hxx @@ -58,13 +58,13 @@ protected: virtual void HandleAttribute( sal_uInt16 nToken, - const OUString& rValue ); + const OUString& rValue ) SAL_OVERRIDE; virtual SvXMLImportContext* HandleChild( sal_uInt16 nToken, sal_uInt16 nPrefix, const OUString& rLocalName, - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; }; #endif diff --git a/xmloff/source/xforms/SchemaRestrictionContext.hxx b/xmloff/source/xforms/SchemaRestrictionContext.hxx index fb05a1ca8900..e55e945d7686 100644 --- a/xmloff/source/xforms/SchemaRestrictionContext.hxx +++ b/xmloff/source/xforms/SchemaRestrictionContext.hxx @@ -65,13 +65,13 @@ protected: virtual void HandleAttribute( sal_uInt16 nToken, - const OUString& rValue ); + const OUString& rValue ) SAL_OVERRIDE; virtual SvXMLImportContext* HandleChild( sal_uInt16 nToken, sal_uInt16 nPrefix, const OUString& rLocalName, - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; }; #endif diff --git a/xmloff/source/xforms/SchemaSimpleTypeContext.hxx b/xmloff/source/xforms/SchemaSimpleTypeContext.hxx index e3fde9683381..a84f4ce57194 100644 --- a/xmloff/source/xforms/SchemaSimpleTypeContext.hxx +++ b/xmloff/source/xforms/SchemaSimpleTypeContext.hxx @@ -60,13 +60,13 @@ protected: virtual void HandleAttribute( sal_uInt16 nToken, - const OUString& rValue ); + const OUString& rValue ) SAL_OVERRIDE; virtual SvXMLImportContext* HandleChild( sal_uInt16 nToken, sal_uInt16 nPrefix, const OUString& rLocalName, - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; }; #endif diff --git a/xmloff/source/xforms/TokenContext.hxx b/xmloff/source/xforms/TokenContext.hxx index da82828d557c..156b80305758 100644 --- a/xmloff/source/xforms/TokenContext.hxx +++ b/xmloff/source/xforms/TokenContext.hxx @@ -63,7 +63,7 @@ public: * create a warning for all others. Classes that wish to override * StartElement need to call the parent method. */ virtual void StartElement( - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; /** call HandleChild for each child element in the token map; * create a warning for all others. Classes that wish to override @@ -72,13 +72,13 @@ public: virtual SvXMLImportContext* CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; /** Create a warning for all non-namespace character * content. Classes that wish to deal with character content have * to overload this method anyway, and will thus get rid of the * warnings. */ - virtual void Characters( const OUString& rChars ); + virtual void Characters( const OUString& rChars ) SAL_OVERRIDE; protected: /** will be called for each attribute */ diff --git a/xmloff/source/xforms/XFormsBindContext.hxx b/xmloff/source/xforms/XFormsBindContext.hxx index 8d955a5c5a32..4dec0e109977 100644 --- a/xmloff/source/xforms/XFormsBindContext.hxx +++ b/xmloff/source/xforms/XFormsBindContext.hxx @@ -57,17 +57,17 @@ public: virtual void StartElement( - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; protected: virtual void HandleAttribute( sal_uInt16 nToken, - const OUString& rValue ); + const OUString& rValue ) SAL_OVERRIDE; virtual SvXMLImportContext* HandleChild( sal_uInt16 nToken, sal_uInt16 nNamespace, const OUString& rLocalName, - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; }; diff --git a/xmloff/source/xforms/XFormsInstanceContext.hxx b/xmloff/source/xforms/XFormsInstanceContext.hxx index 6afcb6f4f360..a42b6967fdb6 100644 --- a/xmloff/source/xforms/XFormsInstanceContext.hxx +++ b/xmloff/source/xforms/XFormsInstanceContext.hxx @@ -65,21 +65,21 @@ public: virtual SvXMLImportContext* CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; - virtual void EndElement(); + virtual void EndElement() SAL_OVERRIDE; protected: virtual void HandleAttribute( sal_uInt16 nToken, - const OUString& rValue ); + const OUString& rValue ) SAL_OVERRIDE; virtual SvXMLImportContext* HandleChild( sal_uInt16 nToken, sal_uInt16 nNamespace, const OUString& rLocalName, - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; }; #endif diff --git a/xmloff/source/xforms/XFormsModelContext.hxx b/xmloff/source/xforms/XFormsModelContext.hxx index 10c421427d07..ef4a4b550750 100644 --- a/xmloff/source/xforms/XFormsModelContext.hxx +++ b/xmloff/source/xforms/XFormsModelContext.hxx @@ -54,19 +54,19 @@ public: // implement SvXMLImportContext & TokenContext methods: - virtual void EndElement(); + virtual void EndElement() SAL_OVERRIDE; protected: virtual void HandleAttribute( sal_uInt16 nToken, - const OUString& rValue ); + const OUString& rValue ) SAL_OVERRIDE; virtual SvXMLImportContext* HandleChild( sal_uInt16 nToken, sal_uInt16 nPrefix, const OUString& rLocalName, - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; }; #endif diff --git a/xmloff/source/xforms/XFormsSubmissionContext.hxx b/xmloff/source/xforms/XFormsSubmissionContext.hxx index 27ade1e550a4..82c9292b0c34 100644 --- a/xmloff/source/xforms/XFormsSubmissionContext.hxx +++ b/xmloff/source/xforms/XFormsSubmissionContext.hxx @@ -57,13 +57,13 @@ public: protected: virtual void HandleAttribute( sal_uInt16 nToken, - const OUString& rValue ); + const OUString& rValue ) SAL_OVERRIDE; virtual SvXMLImportContext* HandleChild( sal_uInt16 nToken, sal_uInt16 nNamespace, const OUString& rLocalName, - const com::sun::star::uno::Reference& xAttrList ); + const com::sun::star::uno::Reference& xAttrList ) SAL_OVERRIDE; }; -- cgit