[Libreoffice-commits] .: sw/source

Michael Stahl mst at kemper.freedesktop.org
Wed Apr 25 04:02:32 PDT 2012


 sw/source/ui/dbui/mmaddressblockpage.cxx |    2 +-
 sw/source/ui/dbui/mmaddressblockpage.hxx |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

New commits:
commit afccf73c63731fa17d113a6a983ee17c13db5f5f
Author: Michael Stahl <mstahl at redhat.com>
Date:   Wed Apr 25 13:00:07 2012 +0200

    Revert "WaE: hides overloaded virtual function"
    
    This reverts commit 192edc5e65685a3093d94457dca9db8d3b891486.
    
    The method must be called Notify so the SfxBroadcaster calls it instead
    of the base class method that does nothing.

diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index e04c6de..28bf2e7 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -1402,7 +1402,7 @@ AddressMultiLineEdit::~AddressMultiLineEdit()
     EndListening(*GetTextEngine());
 }
 
-void    AddressMultiLineEdit::NotifyOfHint( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
+void    AddressMultiLineEdit::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
 {
     if(rHint.ISA(TextHint) &&
             static_cast<const TextHint&>(rHint).GetId() == TEXT_HINT_VIEWSELECTIONCHANGED &&
diff --git a/sw/source/ui/dbui/mmaddressblockpage.hxx b/sw/source/ui/dbui/mmaddressblockpage.hxx
index d2e32f6..beacab6 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.hxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.hxx
@@ -168,6 +168,8 @@ class AddressMultiLineEdit : public MultiLineEdit, public SfxListener
     Link                            m_aSelectionLink;
     SwCustomizeAddressBlockDialog*  m_pParentDialog;
 
+    using Window::Notify;
+
     using MultiLineEdit::SetText;
 
 protected:
@@ -176,7 +178,7 @@ public:
     AddressMultiLineEdit(SwCustomizeAddressBlockDialog* pParent, const ResId& rResId);
     ~AddressMultiLineEdit();
 
-    virtual void    NotifyOfHint( SfxBroadcaster& rBC, const SfxHint& rHint );
+    virtual void    Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
 
     void            SetSelectionChangedHdl( const Link& rLink ) {m_aSelectionLink = rLink;}
 


More information about the Libreoffice-commits mailing list