diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-05-03 21:15:53 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-05-03 22:32:04 +0200 |
commit | 0f88c2a7511b5db700751a5574078e51c4013d53 (patch) | |
tree | 7f9485341e6285fe98da7910aff7933845f3cfcb /sw | |
parent | 3a9a754db00586e57021a2fd2202f0957d906d06 (diff) |
Use auto and constify
Change-Id: Ib871b2c8bb5696bc7c31413548362410f0d35187
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/frmedt/feshview.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx index 249f718d0c66..0e5b31d4e97f 100644 --- a/sw/source/core/frmedt/feshview.cxx +++ b/sw/source/core/frmedt/feshview.cxx @@ -1028,7 +1028,7 @@ bool SwFEShell::IsObjSelectable( const Point& rPt ) { SdrObject* pObj; SdrPageView* pPV; - sal_uInt16 nOld = pDView->GetHitTolerancePixel(); + const auto nOld = pDView->GetHitTolerancePixel(); pDView->SetHitTolerancePixel( pDView->GetMarkHdlSizePixel()/2 ); bRet = pDView->PickObj( rPt, pDView->getHitTolLog(), pObj, pPV, SdrSearchOptions::PICKMARKABLE ); @@ -1045,7 +1045,7 @@ SdrObject* SwFEShell::GetObjAt( const Point& rPt ) if( pDView ) { SdrPageView* pPV; - sal_uInt16 nOld = pDView->GetHitTolerancePixel(); + const auto nOld = pDView->GetHitTolerancePixel(); pDView->SetHitTolerancePixel( pDView->GetMarkHdlSizePixel()/2 ); pDView->PickObj( rPt, pDView->getHitTolLog(), pRet, pPV, SdrSearchOptions::PICKMARKABLE ); @@ -1065,7 +1065,7 @@ bool SwFEShell::ShouldObjectBeSelected(const Point& rPt) { SdrObject* pObj; SdrPageView* pPV; - sal_uInt16 nOld(pDrawView->GetHitTolerancePixel()); + const auto nOld(pDrawView->GetHitTolerancePixel()); pDrawView->SetHitTolerancePixel(pDrawView->GetMarkHdlSizePixel()/2); bRet = pDrawView->PickObj(rPt, pDrawView->getHitTolLog(), pObj, pPV, SdrSearchOptions::PICKMARKABLE); @@ -2513,7 +2513,7 @@ SwChainRet SwFEShell::Chainable( SwRect &rRect, const SwFrmFmt &rSource, SdrObject* pObj; SdrPageView* pPView; SwDrawView *pDView = const_cast<SwDrawView*>(Imp()->GetDrawView()); - const sal_uInt16 nOld = pDView->GetHitTolerancePixel(); + const auto nOld = pDView->GetHitTolerancePixel(); pDView->SetHitTolerancePixel( 0 ); if( pDView->PickObj( rPt, pDView->getHitTolLog(), pObj, pPView, SdrSearchOptions::PICKMARKABLE ) && pObj->ISA(SwVirtFlyDrawObj) ) @@ -2546,7 +2546,7 @@ SwChainRet SwFEShell::Chain( SwFrmFmt &rSource, const Point &rPt ) SdrObject* pObj; SdrPageView* pPView; SwDrawView *pDView = (SwDrawView*)Imp()->GetDrawView(); - const sal_uInt16 nOld = pDView->GetHitTolerancePixel(); + const auto nOld = pDView->GetHitTolerancePixel(); pDView->SetHitTolerancePixel( 0 ); pDView->PickObj( rPt, pDView->getHitTolLog(), pObj, pPView, SdrSearchOptions::PICKMARKABLE ); pDView->SetHitTolerancePixel( nOld ); |