From 5a308b1239a09417507b0d05090ff2d3418d5133 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 9 Mar 2015 10:11:00 +0000 Subject: V801: Decreased performance Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a --- sfx2/source/sidebar/Tools.cxx | 44 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'sfx2/source/sidebar/Tools.cxx') 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; } -- cgit