From a0798dbe6caba9aa24f327103f39af3b109ee27e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 2 Oct 2008 08:13:25 +0000 Subject: [PATCH] const svn path=/trunk/KDE/kdebase/workspace/; revision=866898 --- effects/wobblywindows.cpp | 14 +++++++------- effects/wobblywindows.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/effects/wobblywindows.cpp b/effects/wobblywindows.cpp index 2169eb02dd..3c414dad9c 100644 --- a/effects/wobblywindows.cpp +++ b/effects/wobblywindows.cpp @@ -73,7 +73,7 @@ struct ParameterSet bool closeEffectEnabled; }; -ParameterSet set_0 = +static const ParameterSet set_0 = { 0.15, 0.80, @@ -91,7 +91,7 @@ ParameterSet set_0 = false }; -ParameterSet set_1 = +static const ParameterSet set_1 = { 0.10, 0.85, @@ -109,7 +109,7 @@ ParameterSet set_1 = false }; -ParameterSet set_2 = +static const ParameterSet set_2 = { 0.06, 0.90, @@ -127,7 +127,7 @@ ParameterSet set_2 = false }; -ParameterSet set_3 = +static const ParameterSet set_3 = { 0.03, 0.92, @@ -145,7 +145,7 @@ ParameterSet set_3 = false }; -ParameterSet set_4 = +static const ParameterSet set_4 = { 0.01, 0.97, @@ -163,7 +163,7 @@ ParameterSet set_4 = false }; -ParameterSet pset[5] = { set_0, set_1, set_2, set_3, set_4 }; +static const ParameterSet pset[5] = { set_0, set_1, set_2, set_3, set_4 }; KWIN_EFFECT(wobblywindows, WobblyWindowsEffect) @@ -240,7 +240,7 @@ WobblyWindowsEffect::~WobblyWindowsEffect() } } -void WobblyWindowsEffect::setParameterSet(ParameterSet& pset) +void WobblyWindowsEffect::setParameterSet(const ParameterSet& pset) { m_stiffness = pset.stiffness; m_drag = pset.drag; diff --git a/effects/wobblywindows.h b/effects/wobblywindows.h index 64eadb0151..31b8f09069 100644 --- a/effects/wobblywindows.h +++ b/effects/wobblywindows.h @@ -126,7 +126,7 @@ class WobblyWindowsEffect : public Effect static void heightRingLinearMean(Pair** datas, WindowWobblyInfos& wwi); - void setParameterSet(ParameterSet& pset); + void setParameterSet(const ParameterSet& pset); }; } // namespace KWin