diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-26 16:37:00 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-26 16:39:26 +0100 |
commit | 70cc2b191b95fbc210bc1f0f6a7159f341894f0f (patch) | |
tree | a70f4957c454b443520cbf91250c41d9eea80017 /include/svtools/fmtfield.hxx | |
parent | 8757bea2e88c6e349e1fe98d8e9695d7b9c6179e (diff) |
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
Diffstat (limited to 'include/svtools/fmtfield.hxx')
-rw-r--r-- | include/svtools/fmtfield.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/svtools/fmtfield.hxx b/include/svtools/fmtfield.hxx index 3dc58ab5e912..3c83d6d8fc62 100644 --- a/include/svtools/fmtfield.hxx +++ b/include/svtools/fmtfield.hxx @@ -158,11 +158,11 @@ public: // Formatueberpruefung waehrend der Eingabe ? // Spin-Handling - virtual void Up(); - virtual void Down(); + virtual void Up() SAL_OVERRIDE; + virtual void Down() SAL_OVERRIDE; // Standard-Implementierung : hoch- oder runterzaehlen des aktuellen double einfach um die gesetzte SpinSize - virtual void First(); - virtual void Last(); + virtual void First() SAL_OVERRIDE; + virtual void Last() SAL_OVERRIDE; // Standard-Implementierung : aktuelles double setzen auf eingestellten first respektive last value void SetSpinSize(double dStep) { m_dSpinSize = dStep; } @@ -178,8 +178,8 @@ public: void TreatAsNumber(bool bDoSo) { m_bTreatAsNumber = bDoSo; } public: - virtual void SetText( const OUString& rStr ); - virtual void SetText( const OUString& rStr, const Selection& rNewSelection ); + virtual void SetText( const OUString& rStr ) SAL_OVERRIDE; + virtual void SetText( const OUString& rStr, const Selection& rNewSelection ) SAL_OVERRIDE; // die folgenden Methoden sind interesant, wenn m_bTreatAsNumber auf sal_False sitzt /** nehmen wir mal an, irgendjemand will das ganze schoene double-Handling gar nicht haben, sondern @@ -234,9 +234,9 @@ public: bool IsUsingInputStringForFormatting() const; protected: - virtual bool Notify(NotifyEvent& rNEvt); + virtual bool Notify(NotifyEvent& rNEvt) SAL_OVERRIDE; void impl_Modify(bool makeValueDirty = true); - virtual void Modify(); + virtual void Modify() SAL_OVERRIDE; // CheckText ueberschreiben fuer Ueberpruefung zur Eingabezeit virtual bool CheckText(const OUString&) const { return true; } @@ -254,7 +254,7 @@ protected: virtual SvNumberFormatter* CreateFormatter() { SetFormatter(StandardFormatter()); return m_pFormatter; } SvNumberFormatter* ImplGetFormatter() const { return m_pFormatter ? m_pFormatter : ((FormattedField*)this)->CreateFormatter(); } - bool PreNotify(NotifyEvent& rNEvt); + bool PreNotify(NotifyEvent& rNEvt) SAL_OVERRIDE; virtual void ReFormat(); }; @@ -276,9 +276,9 @@ public: virtual ~DoubleNumericField(); protected: - virtual bool CheckText(const OUString& sText) const; + virtual bool CheckText(const OUString& sText) const SAL_OVERRIDE; - virtual void FormatChanged(FORMAT_CHANGE_TYPE nWhat); + virtual void FormatChanged(FORMAT_CHANGE_TYPE nWhat) SAL_OVERRIDE; void ResetConformanceTester(); }; @@ -303,7 +303,7 @@ public: void setPrependCurrSym(bool _bPrepend); protected: - virtual void FormatChanged(FORMAT_CHANGE_TYPE nWhat); + virtual void FormatChanged(FORMAT_CHANGE_TYPE nWhat) SAL_OVERRIDE; void UpdateCurrencyFormat(); }; |