summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-09 10:11:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-09 12:41:09 +0000
commit5a308b1239a09417507b0d05090ff2d3418d5133 (patch)
tree990fa9015a4107e4916691eb4dee80fa5713e96b /sfx2
parentc1a227600d0b16df283162d24f1a31f5c9cee474 (diff)
V801: Decreased performance
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/DeckLayouter.cxx14
-rw-r--r--sfx2/source/sidebar/DeckLayouter.hxx2
-rw-r--r--sfx2/source/sidebar/DrawHelper.cxx24
-rw-r--r--sfx2/source/sidebar/DrawHelper.hxx4
-rw-r--r--sfx2/source/sidebar/EnumContext.cxx12
-rw-r--r--sfx2/source/sidebar/Tools.cxx44
6 files changed, 50 insertions, 50 deletions
diff --git a/sfx2/source/sidebar/DeckLayouter.cxx b/sfx2/source/sidebar/DeckLayouter.cxx
index 7be55137b084..984b61bedd2e 100644
--- a/sfx2/source/sidebar/DeckLayouter.cxx
+++ b/sfx2/source/sidebar/DeckLayouter.cxx
@@ -55,7 +55,7 @@ namespace {
{}
};
Rectangle LayoutPanels (
- const Rectangle aContentArea,
+ const Rectangle& rContentArea,
sal_Int32& rMinimalWidth,
::std::vector<LayoutItem>& rLayoutItems,
vcl::Window& rScrollClipWindow,
@@ -101,7 +101,7 @@ namespace {
++iterator_name)
void DeckLayouter::LayoutDeck (
- const Rectangle aContentArea,
+ const Rectangle& rContentArea,
sal_Int32& rMinimalWidth,
SharedPanelContainer& rPanels,
vcl::Window& rDeckTitleBar,
@@ -110,9 +110,9 @@ void DeckLayouter::LayoutDeck (
vcl::Window& rFiller,
ScrollBar& rVerticalScrollBar)
{
- if (aContentArea.GetWidth()<=0 || aContentArea.GetHeight()<=0)
+ if (rContentArea.GetWidth()<=0 || rContentArea.GetHeight()<=0)
return;
- Rectangle aBox (PlaceDeckTitle(rDeckTitleBar, aContentArea));
+ Rectangle aBox (PlaceDeckTitle(rDeckTitleBar, rContentArea));
if ( ! rPanels.empty())
{
@@ -139,7 +139,7 @@ void DeckLayouter::LayoutDeck (
namespace {
Rectangle LayoutPanels (
- const Rectangle aContentArea,
+ const Rectangle& rContentArea,
sal_Int32& rMinimalWidth,
::std::vector<LayoutItem>& rLayoutItems,
vcl::Window& rScrollClipWindow,
@@ -147,7 +147,7 @@ Rectangle LayoutPanels (
ScrollBar& rVerticalScrollBar,
const bool bShowVerticalScrollBar)
{
- Rectangle aBox (PlaceVerticalScrollBar(rVerticalScrollBar, aContentArea, bShowVerticalScrollBar));
+ Rectangle aBox (PlaceVerticalScrollBar(rVerticalScrollBar, rContentArea, bShowVerticalScrollBar));
const sal_Int32 nWidth (aBox.GetWidth());
@@ -176,7 +176,7 @@ Rectangle LayoutPanels (
// minimum height.
// Show a vertical scrollbar.
return LayoutPanels(
- aContentArea,
+ rContentArea,
rMinimalWidth,
rLayoutItems,
rScrollClipWindow,
diff --git a/sfx2/source/sidebar/DeckLayouter.hxx b/sfx2/source/sidebar/DeckLayouter.hxx
index 7d57e8ec6903..965fb5614247 100644
--- a/sfx2/source/sidebar/DeckLayouter.hxx
+++ b/sfx2/source/sidebar/DeckLayouter.hxx
@@ -40,7 +40,7 @@ class Panel;
namespace DeckLayouter
{
void LayoutDeck (
- const Rectangle aContentArea,
+ const Rectangle& rContentArea,
sal_Int32& rMinimalWidth,
SharedPanelContainer& rPanels,
vcl::Window& pDeckTitleBar,
diff --git a/sfx2/source/sidebar/DrawHelper.cxx b/sfx2/source/sidebar/DrawHelper.cxx
index 3a29a55cbc43..903f63827fa4 100644
--- a/sfx2/source/sidebar/DrawHelper.cxx
+++ b/sfx2/source/sidebar/DrawHelper.cxx
@@ -26,8 +26,8 @@ namespace sfx2 { namespace sidebar {
void DrawHelper::DrawBorder (
OutputDevice& rDevice,
- const Rectangle rBox,
- const SvBorder aBorderSize,
+ const Rectangle& rBox,
+ const SvBorder& rBorderSize,
const Paint& rHorizontalPaint,
const Paint& rVerticalPaint)
{
@@ -37,31 +37,31 @@ void DrawHelper::DrawBorder (
rBox.Left(),
rBox.Right(),
rBox.Top(),
- aBorderSize.Top(),
+ rBorderSize.Top(),
rHorizontalPaint);
// Draw bottom line.
DrawHorizontalLine(
rDevice,
- rBox.Left()+aBorderSize.Left(),
+ rBox.Left()+rBorderSize.Left(),
rBox.Right(),
- rBox.Bottom()-aBorderSize.Bottom()+1,
- aBorderSize.Bottom(),
+ rBox.Bottom()-rBorderSize.Bottom()+1,
+ rBorderSize.Bottom(),
rHorizontalPaint);
// Draw left line.
DrawVerticalLine(
rDevice,
- rBox.Top()+aBorderSize.Top(),
+ rBox.Top()+rBorderSize.Top(),
rBox.Bottom(),
rBox.Left(),
- aBorderSize.Left(),
+ rBorderSize.Left(),
rVerticalPaint);
// Draw right line.
DrawVerticalLine(
rDevice,
- rBox.Top()+aBorderSize.Top(),
- rBox.Bottom()-aBorderSize.Bottom(),
- rBox.Right()-aBorderSize.Right()+1,
- aBorderSize.Right(),
+ rBox.Top()+rBorderSize.Top(),
+ rBox.Bottom()-rBorderSize.Bottom(),
+ rBox.Right()-rBorderSize.Right()+1,
+ rBorderSize.Right(),
rVerticalPaint);
}
diff --git a/sfx2/source/sidebar/DrawHelper.hxx b/sfx2/source/sidebar/DrawHelper.hxx
index 28c7b1f5e9b9..f93418f0d4aa 100644
--- a/sfx2/source/sidebar/DrawHelper.hxx
+++ b/sfx2/source/sidebar/DrawHelper.hxx
@@ -36,8 +36,8 @@ class DrawHelper
public:
static void DrawBorder (
OutputDevice& rDevice,
- const Rectangle rBox,
- const SvBorder aBorderSize,
+ const Rectangle& rBox,
+ const SvBorder& rBorderSize,
const Paint& rHorizontalPaint,
const Paint& rVerticalPaint);
static void DrawHorizontalLine(
diff --git a/sfx2/source/sidebar/EnumContext.cxx b/sfx2/source/sidebar/EnumContext.cxx
index e27d78fe8e73..e89f5627f7bb 100644
--- a/sfx2/source/sidebar/EnumContext.cxx
+++ b/sfx2/source/sidebar/EnumContext.cxx
@@ -89,16 +89,16 @@ EnumContext::Application EnumContext::GetApplication_DI (void) const
}
}
-bool EnumContext::operator== (const EnumContext aOther)
+bool EnumContext::operator== (const EnumContext& rOther)
{
- return meApplication==aOther.meApplication
- && meContext==aOther.meContext;
+ return meApplication==rOther.meApplication
+ && meContext==rOther.meContext;
}
-bool EnumContext::operator!= (const EnumContext aOther)
+bool EnumContext::operator!= (const EnumContext& rOther)
{
- return meApplication!=aOther.meApplication
- || meContext!=aOther.meContext;
+ return meApplication!=rOther.meApplication
+ || meContext!=rOther.meContext;
}
void EnumContext::AddEntry (const ::rtl::OUString& rsName, const Application eApplication)
diff --git a/sfx2/source/sidebar/Tools.cxx b/sfx2/source/sidebar/Tools.cxx
index cb86ea7b079d..fa9b256f6e0a 100644
--- a/sfx2/source/sidebar/Tools.cxx
+++ b/sfx2/source/sidebar/Tools.cxx
@@ -91,35 +91,35 @@ Image Tools::GetImage (
return Image();
}
-css::awt::Gradient Tools::VclToAwtGradient (const Gradient aVclGradient)
+css::awt::Gradient Tools::VclToAwtGradient (const Gradient& rVclGradient)
{
css::awt::Gradient aAwtGradient (
- awt::GradientStyle(aVclGradient.GetStyle()),
- aVclGradient.GetStartColor().GetRGBColor(),
- aVclGradient.GetEndColor().GetRGBColor(),
- aVclGradient.GetAngle(),
- aVclGradient.GetBorder(),
- aVclGradient.GetOfsX(),
- aVclGradient.GetOfsY(),
- aVclGradient.GetStartIntensity(),
- aVclGradient.GetEndIntensity(),
- aVclGradient.GetSteps());
+ awt::GradientStyle(rVclGradient.GetStyle()),
+ rVclGradient.GetStartColor().GetRGBColor(),
+ rVclGradient.GetEndColor().GetRGBColor(),
+ rVclGradient.GetAngle(),
+ rVclGradient.GetBorder(),
+ rVclGradient.GetOfsX(),
+ rVclGradient.GetOfsY(),
+ rVclGradient.GetStartIntensity(),
+ rVclGradient.GetEndIntensity(),
+ rVclGradient.GetSteps());
return aAwtGradient;
}
-Gradient Tools::AwtToVclGradient (const css::awt::Gradient aAwtGradient)
+Gradient Tools::AwtToVclGradient (const css::awt::Gradient& rAwtGradient)
{
Gradient aVclGradient (
- GradientStyle(aAwtGradient.Style),
- aAwtGradient.StartColor,
- aAwtGradient.EndColor);
- aVclGradient.SetAngle(aAwtGradient.Angle);
- aVclGradient.SetBorder(aAwtGradient.Border);
- aVclGradient.SetOfsX(aAwtGradient.XOffset);
- aVclGradient.SetOfsY(aAwtGradient.YOffset);
- aVclGradient.SetStartIntensity(aAwtGradient.StartIntensity);
- aVclGradient.SetEndIntensity(aAwtGradient.EndIntensity);
- aVclGradient.SetSteps(aAwtGradient.StepCount);
+ GradientStyle(rAwtGradient.Style),
+ rAwtGradient.StartColor,
+ rAwtGradient.EndColor);
+ aVclGradient.SetAngle(rAwtGradient.Angle);
+ aVclGradient.SetBorder(rAwtGradient.Border);
+ aVclGradient.SetOfsX(rAwtGradient.XOffset);
+ aVclGradient.SetOfsY(rAwtGradient.YOffset);
+ aVclGradient.SetStartIntensity(rAwtGradient.StartIntensity);
+ aVclGradient.SetEndIntensity(rAwtGradient.EndIntensity);
+ aVclGradient.SetSteps(rAwtGradient.StepCount);
return aVclGradient;
}