[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sw/inc sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Fri Feb 27 04:11:13 PST 2015
sw/inc/viscrs.hxx | 6 +++---
sw/source/core/crsr/viscrs.cxx | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit b978405882e11097166dcb4aa9528fcee2707052
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Fri Feb 27 13:02:24 2015 +0100
SwSelPaintRects::FillStartEnd(): missing const
Change-Id: I644535d94894e51bc134ba8394238d3044eab488
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx
index 7de57a2..db3a964 100644
--- a/sw/inc/viscrs.hxx
+++ b/sw/inc/viscrs.hxx
@@ -90,7 +90,7 @@ public:
virtual void FillRects() = 0;
/// Fill rStart and rEnd with a rectangle that represents the start and end for selection handles.
- virtual void FillStartEnd(SwRect& rStart, SwRect& rEnd) = 0;
+ virtual void FillStartEnd(SwRect& rStart, SwRect& rEnd) const = 0;
// #i75172# in SwCrsrShell::CreateCrsr() the content of SwSelPaintRects is exchanged. To
// make a complete swap access to mpCursorOverlay is needed there
@@ -129,7 +129,7 @@ public:
virtual void FillRects() SAL_OVERRIDE; // For Table- und normal cursors.
/// @see SwSelPaintRects::FillStartEnd(), override for text selections.
- virtual void FillStartEnd(SwRect& rStart, SwRect& rEnd) SAL_OVERRIDE;
+ virtual void FillStartEnd(SwRect& rStart, SwRect& rEnd) const SAL_OVERRIDE;
void Show(); // Update and display all selections.
void Hide(); // Hide all selections.
@@ -180,7 +180,7 @@ public:
virtual void FillRects() SAL_OVERRIDE; // For table and normal cursor.
/// @see SwSelPaintRects::FillStartEnd(), override for table selections.
- virtual void FillStartEnd(SwRect& rStart, SwRect& rEnd) SAL_OVERRIDE;
+ virtual void FillStartEnd(SwRect& rStart, SwRect& rEnd) const SAL_OVERRIDE;
// Check if SPoint is within table SSelection.
bool IsInside( const Point& rPt ) const;
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx
index 3d0d883..1422f3d 100644
--- a/sw/source/core/crsr/viscrs.cxx
+++ b/sw/source/core/crsr/viscrs.cxx
@@ -276,7 +276,7 @@ static SwRect lcl_getLayoutRect(const Point& rPoint, const SwPosition& rPosition
return aRect;
}
-void SwShellCrsr::FillStartEnd(SwRect& rStart, SwRect& rEnd)
+void SwShellCrsr::FillStartEnd(SwRect& rStart, SwRect& rEnd) const
{
const SwShellCrsr* pCursor = GetShell()->getShellCrsr(false);
rStart = lcl_getLayoutRect(pCursor->GetSttPos(), *pCursor->Start());
@@ -773,7 +773,7 @@ void SwShellTableCrsr::FillRects()
insert( begin(), aReg.begin(), aReg.end() );
}
-void SwShellTableCrsr::FillStartEnd(SwRect& rStart, SwRect& rEnd)
+void SwShellTableCrsr::FillStartEnd(SwRect& rStart, SwRect& rEnd) const
{
rStart = m_aStart;
rEnd = m_aEnd;
More information about the Libreoffice-commits
mailing list