include/svtools/ruler.hxx        |    3 +--
 sd/source/ui/view/sdruler.cxx    |    2 +-
 svtools/source/control/ruler.cxx |    2 +-
 svx/source/dialog/svxruler.cxx   |    2 +-
 4 files changed, 4 insertions(+), 5 deletions(-)

New commits:
commit 0a83a11a5324333150dccd3faaeecbd2ec8d2aba
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Feb 12 17:28:02 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Feb 13 20:03:39 2021 +0100

    rename Ruler::GetType to drop using Window::GetType
    
    Change-Id: I78da4bb35f5f3e7253737ddc3be1460fbf605ad8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110831
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx
index 5c7cc2f6ba8c..27d52b220635 100644
--- a/include/svtools/ruler.hxx
+++ b/include/svtools/ruler.hxx
@@ -759,8 +759,7 @@ public:
 
     const RulerSelection& GetHoverSelection() const { return maHoverSelection; 
}
 
-    using Window::GetType;
-    RulerType       GetType( const Point& rPos, sal_uInt16* pAryPos = nullptr 
);
+    RulerType       GetRulerType( const Point& rPos, sal_uInt16* pAryPos = 
nullptr );
 
     void            SetNullOffset( tools::Long nPos );
     tools::Long            GetNullOffset() const;
diff --git a/sd/source/ui/view/sdruler.cxx b/sd/source/ui/view/sdruler.cxx
index a3892acfd957..8490a05d2bd0 100644
--- a/sd/source/ui/view/sdruler.cxx
+++ b/sd/source/ui/view/sdruler.cxx
@@ -106,7 +106,7 @@ void Ruler::dispose()
 void Ruler::MouseButtonDown(const MouseEvent& rMEvt)
 {
     Point aMPos = rMEvt.GetPosPixel();
-    RulerType eType = GetType(aMPos);
+    RulerType eType = GetRulerType(aMPos);
 
     if ( !pDrViewShell->GetView()->IsTextEdit() &&
         rMEvt.IsLeft() && rMEvt.GetClicks() == 1 &&
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 2caa18a0f3bc..170769684ba1 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2309,7 +2309,7 @@ void Ruler::CancelDrag()
     }
 }
 
-RulerType Ruler::GetType( const Point& rPos, sal_uInt16* pAryPos )
+RulerType Ruler::GetRulerType( const Point& rPos, sal_uInt16* pAryPos )
 {
     RulerSelection aHitTest;
 
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index 55b575d4a4ca..d24de90e2a7a 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -3297,7 +3297,7 @@ void SvxRuler::Command( const CommandEvent& rCommandEvent 
)
         bool bRTL = mxRulerImpl->pTextRTLItem && 
mxRulerImpl->pTextRTLItem->GetValue();
         if ( !mpTabs.empty() &&
              RulerType::Tab ==
-             GetType( rCommandEvent.GetMousePosPixel(), &mxRulerImpl->nIdx ) &&
+             GetRulerType( rCommandEvent.GetMousePosPixel(), 
&mxRulerImpl->nIdx ) &&
              mpTabs[mxRulerImpl->nIdx + TAB_GAP].nStyle < RULER_TAB_DEFAULT )
         {
             ScopedVclPtrInstance<PopupMenu> aMenu;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to