summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/Tools.cxx
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/source/sidebar/Tools.cxx
parentc1a227600d0b16df283162d24f1a31f5c9cee474 (diff)
V801: Decreased performance
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
Diffstat (limited to 'sfx2/source/sidebar/Tools.cxx')
-rw-r--r--sfx2/source/sidebar/Tools.cxx44
1 files changed, 22 insertions, 22 deletions
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;
}