summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-04 20:27:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-04 21:07:50 +0000
commit986a0709e25e5148bf6003aba25ca16bba1b43db (patch)
tree4c79b7fae02931e7ba97496ea761f8a9c0e66a0b /sw/source/uibase/docvw
parent6727b20c71962eb41e4f878bd932902fa13e315f (diff)
V801: Decreased performance
Change-Id: I342cbf679e50175808f64469c7e5c208cb75d8db
Diffstat (limited to 'sw/source/uibase/docvw')
-rw-r--r--sw/source/uibase/docvw/AnchorOverlayObject.cxx4
-rw-r--r--sw/source/uibase/docvw/AnchorOverlayObject.hxx2
-rw-r--r--sw/source/uibase/docvw/PostItMgr.cxx10
-rw-r--r--sw/source/uibase/docvw/SidebarWin.cxx4
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx4
5 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/uibase/docvw/AnchorOverlayObject.cxx b/sw/source/uibase/docvw/AnchorOverlayObject.cxx
index d3f1ee04bcf8..4f3fa86b4a02 100644
--- a/sw/source/uibase/docvw/AnchorOverlayObject.cxx
+++ b/sw/source/uibase/docvw/AnchorOverlayObject.cxx
@@ -284,10 +284,10 @@ AnchorOverlayObject::AnchorOverlayObject( const basegfx::B2DPoint& rBasePos,
const basegfx::B2DPoint& rFifthPos,
const basegfx::B2DPoint& rSixthPos,
const basegfx::B2DPoint& rSeventhPos,
- const Color aBaseColor,
+ const Color& rBaseColor,
const bool bShadowedEffect,
const bool bLineSolid)
- : OverlayObjectWithBasePosition( rBasePos, aBaseColor )
+ : OverlayObjectWithBasePosition(rBasePos, rBaseColor)
, maSecondPosition(rSecondPos)
, maThirdPosition(rThirdPos)
, maFourthPosition(rFourthPos)
diff --git a/sw/source/uibase/docvw/AnchorOverlayObject.hxx b/sw/source/uibase/docvw/AnchorOverlayObject.hxx
index 8298abc19fff..fdcdbd3ff8ae 100644
--- a/sw/source/uibase/docvw/AnchorOverlayObject.hxx
+++ b/sw/source/uibase/docvw/AnchorOverlayObject.hxx
@@ -120,7 +120,7 @@ class AnchorOverlayObject: public sdr::overlay::OverlayObjectWithBasePosition
const basegfx::B2DPoint& rFifthPos,
const basegfx::B2DPoint& rSixthPos,
const basegfx::B2DPoint& rSeventhPos,
- const Color aBaseColor,
+ const Color& rBaseColor,
const bool bShadowedEffect,
const bool bLineSolid );
virtual ~AnchorOverlayObject();
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index 397def2ef5f9..cbd5f2f826a7 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -977,7 +977,7 @@ Color SwPostItMgr::GetArrowColor(sal_uInt16 aDirection,unsigned long aPage) cons
}
}
-bool SwPostItMgr::LayoutByPage(std::list<SwSidebarWin*> &aVisiblePostItList,const Rectangle aBorder, long lNeededHeight)
+bool SwPostItMgr::LayoutByPage(std::list<SwSidebarWin*> &aVisiblePostItList, const Rectangle& rBorder, long lNeededHeight)
{
/*** General layout idea:***/
// - if we have space left, we always move the current one up,
@@ -986,10 +986,10 @@ bool SwPostItMgr::LayoutByPage(std::list<SwSidebarWin*> &aVisiblePostItList,cons
// - then the real layout starts
//rBorder is the page rect
- const Rectangle rBorder = mpEditWin->LogicToPixel( aBorder);
- long lTopBorder = rBorder.Top() + 5;
- long lBottomBorder = rBorder.Bottom() - 5;
- const long lVisibleHeight = lBottomBorder - lTopBorder; //rBorder.GetHeight() ;
+ const Rectangle aBorder = mpEditWin->LogicToPixel(rBorder);
+ long lTopBorder = aBorder.Top() + 5;
+ long lBottomBorder = aBorder.Bottom() - 5;
+ const long lVisibleHeight = lBottomBorder - lTopBorder; //aBorder.GetHeight() ;
const size_t nPostItListSize = aVisiblePostItList.size();
long lTranslatePos = 0;
bool bScrollbars = false;
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index e6f4a91a7a63..9b016644633e 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -914,7 +914,7 @@ void SwSidebarWin::SetReadonly(bool bSet)
GetOutlinerView()->SetReadOnly(bSet);
}
-void SwSidebarWin::SetLanguage(const SvxLanguageItem aNewItem)
+void SwSidebarWin::SetLanguage(const SvxLanguageItem& rNewItem)
{
Link pLink = Engine()->GetModifyHdl();
Engine()->SetModifyHdl( Link() );
@@ -923,7 +923,7 @@ void SwSidebarWin::SetLanguage(const SvxLanguageItem aNewItem)
ESelection aNewSelection( 0, 0, Engine()->GetParagraphCount()-1, EE_TEXTPOS_ALL );
GetOutlinerView()->SetSelection( aNewSelection );
SfxItemSet aEditAttr(GetOutlinerView()->GetAttribs());
- aEditAttr.Put(aNewItem);
+ aEditAttr.Put(rNewItem);
GetOutlinerView()->SetAttribs( aEditAttr );
GetOutlinerView()->SetSelection(aOld);
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index bf0b28dab29b..d799f96bf3fb 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -2783,7 +2783,7 @@ void touch_lo_selection_end_move_impl(const void *documentHandle,
#endif
-void SwEditWin::MoveCursor( SwWrtShell &rSh, const Point aDocPos,
+void SwEditWin::MoveCursor( SwWrtShell &rSh, const Point& rDocPos,
const bool bOnlyText, bool bLockView )
{
const bool bTmpNoInterrupt = bNoInterrupt;
@@ -2800,7 +2800,7 @@ void SwEditWin::MoveCursor( SwWrtShell &rSh, const Point aDocPos,
// only temporary generate move context because otherwise
// the query to the content form doesn't work!!!
SwMvContext aMvContext( &rSh );
- nTmpSetCrsr = rSh.SetCursor(&aDocPos, bOnlyText);
+ nTmpSetCrsr = rSh.SetCursor(&rDocPos, bOnlyText);
bValidCrsrPos = !(CRSR_POSCHG & nTmpSetCrsr);
}