X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscroll-view%2Fscroll-view-page-spiral-effect-impl.cpp;h=3b89b084fb00b6ce1f51b668c854f7a18516244d;hb=refs%2Fheads%2Ftizen_3.0.2015.q1_common;hp=61c51ef2f18780f20af400c39fe573ee653fa9f6;hpb=7e315a440bad7033d19fefa8f9952d625ee6f076;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-spiral-effect-impl.cpp b/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-spiral-effect-impl.cpp index 61c51ef..3b89b08 100644 --- a/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-spiral-effect-impl.cpp +++ b/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-page-spiral-effect-impl.cpp @@ -69,7 +69,7 @@ using namespace ScrollViewHelperFunctions; * relative to the middle of the screen. * When at middle of the screen the position is not altered. */ -class ScrollPageSpiralEffectInfo : public Dali::RefObject +class ScrollPageSpiralEffectInfo { public: @@ -336,8 +336,6 @@ public: bool mScrollWrap; ///< Whether the scroll view wraps or not. }; -typedef IntrusivePtr ScrollPageSpiralEffectInfoPtr; - /** * Helper: Applies the 3D scroll cube constraints to the child actor * @@ -347,7 +345,7 @@ typedef IntrusivePtr ScrollPageSpiralEffectInfoPtr; */ void ApplyScrollCubeConstraints(Toolkit::ScrollView scrollView, Actor child, - ScrollPageSpiralEffectInfoPtr info) + ScrollPageSpiralEffectInfo& info) { // Apply constraints to this actor // Constraint constraint; @@ -405,7 +403,7 @@ void ScrollViewPageSpiralEffect::ApplyToPage( Actor page, const Vector2& spiralA if ( scrollView ) { - ScrollPageSpiralEffectInfoPtr info(new ScrollPageSpiralEffectInfo( spiralAngle, GetImpl( scrollView ).GetWrapMode() )); + ScrollPageSpiralEffectInfo info( spiralAngle, GetImpl( scrollView ).GetWrapMode() ); ApplyScrollCubeConstraints( scrollView, page, info ); } }