summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/view/gridwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-03 11:31:14 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-06 07:04:50 +0000
commite9c3583c2cc27fc88ee81047c236ec99dd51e8de (patch)
treeb3e8394ca1ec402a31b227339366fc790124c1f8 /sc/source/ui/view/gridwin.cxx
parentremove some unnecessary typedefs around uno::Reference (diff)
downloadcore-e9c3583c2cc27fc88ee81047c236ec99dd51e8de.tar.gz
core-e9c3583c2cc27fc88ee81047c236ec99dd51e8de.zip
improve the returnbyref loplugin
Change-Id: I1b510a6194282dfa4a9001d473127c5ebc8b44eb Reviewed-on: https://gerrit.libreoffice.org/16731 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r--sc/source/ui/view/gridwin.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 38dc2951b059..5acc912fa2af 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -4952,22 +4952,22 @@ bool ScGridWindow::HitRangeFinder( const Point& rMouse, RfCorner& rCorner,
{
// search backwards so that the last repainted frame is found
--i;
- ScRangeFindData* pData = pRangeFinder->GetObject(i);
- if ( pData->aRef.In(aAddr) )
+ ScRangeFindData& rData = pRangeFinder->GetObject(i);
+ if ( rData.aRef.In(aAddr) )
{
if (pIndex)
*pIndex = i;
if (pAddX)
- *pAddX = nPosX - pData->aRef.aStart.Col();
+ *pAddX = nPosX - rData.aRef.aStart.Col();
if (pAddY)
- *pAddY = nPosY - pData->aRef.aStart.Row();
+ *pAddY = nPosY - rData.aRef.aStart.Row();
bFound = true;
rCorner = NONE;
- ScAddress aEnd = pData->aRef.aEnd;
- ScAddress aStart = pData->aRef.aStart;
+ ScAddress aEnd = rData.aRef.aEnd;
+ ScAddress aStart = rData.aRef.aStart;
if ( bCornerHorizontalLeft && bCornerVerticalUp &&
aAddr == aStart)
@@ -5145,7 +5145,7 @@ void ScGridWindow::RFMouseMove( const MouseEvent& rMEvt, bool bUp )
ScRangeFindList* pRangeFinder = pHdl->GetRangeFindList();
if (!pRangeFinder || nRFIndex >= pRangeFinder->Count())
return;
- ScRangeFindData* pData = pRangeFinder->GetObject( nRFIndex );
+ ScRangeFindData& rData = pRangeFinder->GetObject( nRFIndex );
// Mauszeiger
@@ -5203,7 +5203,7 @@ void ScGridWindow::RFMouseMove( const MouseEvent& rMEvt, bool bUp )
SCsROW nPosY;
pViewData->GetPosFromPixel( aPos.X(), aPos.Y(), eWhich, nPosX, nPosY );
- ScRange aOld = pData->aRef;
+ ScRange aOld = rData.aRef;
ScRange aNew = aOld;
if ( bRFSize )
{