(ScrollView) Inlined one line Getters/Setters
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / scrollable / scroll-view / scroll-view-effect-impl.cpp
index fa4d89c..13d4913 100644 (file)
@@ -15,6 +15,7 @@
  *
  */
 
+// INTERNAL INCLUDES
 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-effect-impl.h>
 #include <dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h>
 
@@ -22,13 +23,10 @@ using namespace Dali;
 
 namespace Dali
 {
-
 namespace Toolkit
 {
-
 namespace Internal
 {
-
 ScrollViewEffect::ScrollViewEffect()
 : mScrollViewImpl(NULL)
 {
@@ -40,7 +38,7 @@ ScrollViewEffect::~ScrollViewEffect()
 
 void ScrollViewEffect::Attach(Toolkit::ScrollView& scrollView)
 {
-  DALI_ASSERT_ALWAYS( (!mScrollViewImpl) && "Already attached to a ScrollView" );
+  DALI_ASSERT_ALWAYS((!mScrollViewImpl) && "Already attached to a ScrollView");
 
   mScrollViewImpl = &GetImpl(scrollView);
 
@@ -49,8 +47,8 @@ void ScrollViewEffect::Attach(Toolkit::ScrollView& scrollView)
 
 void ScrollViewEffect::Detach(Toolkit::ScrollView& scrollView)
 {
-  DALI_ASSERT_ALWAYS( (mScrollViewImpl) && "Already detached from ScrollView" );
-  DALI_ASSERT_ALWAYS( (&GetImpl(scrollView) == mScrollViewImpl) && "Effect attached to a different ScrollView");
+  DALI_ASSERT_ALWAYS((mScrollViewImpl) && "Already detached from ScrollView");
+  DALI_ASSERT_ALWAYS((&GetImpl(scrollView) == mScrollViewImpl) && "Effect attached to a different ScrollView");
 
   OnDetach(scrollView);
 
@@ -61,7 +59,7 @@ Toolkit::ScrollView ScrollViewEffect::GetScrollView()
 {
   DALI_ASSERT_ALWAYS(mScrollViewImpl);
 
-  return DownCast<Toolkit::ScrollView>( mScrollViewImpl->Self() );
+  return DownCast<Toolkit::ScrollView>(mScrollViewImpl->Self());
 }
 
 } // namespace Internal