Fix various SVACE errors 04/98004/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 15 Nov 2016 15:35:34 +0000 (15:35 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 15 Nov 2016 15:35:34 +0000 (15:35 +0000)
Change-Id: I2dfed0e2863dfc4eecb3cb86d28968a76ba78836

16 files changed:
demo/dali-table-view.cpp
examples/benchmark/benchmark.cpp
examples/builder/examples.cpp
examples/buttons/buttons-example.cpp
examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp
examples/image-view-svg/image-view-svg-example.cpp
examples/magnifier/magnifier-example.cpp
examples/metaball-refrac/metaball-refrac-example.cpp
examples/motion-blur/motion-blur-example.cpp
examples/motion-stretch/motion-stretch-example.cpp
examples/new-window/new-window-example.cpp
examples/perf-scroll/perf-scroll.cpp
examples/styling/image-channel-control-impl.cpp
examples/styling/styling-application.cpp
examples/text-label-emojis/text-label-emojis.cpp
examples/video-view/video-view-example.cpp

index 1de6db9..09a0343 100644 (file)
@@ -226,6 +226,7 @@ DaliTableView::DaliTableView( Application& application )
   mPages(),
   mBackgroundAnimations(),
   mExampleList(),
+  mPageWidth( 0.0f ),
   mTotalPages(),
   mScrolling( false ),
   mSortAlphabetically( false ),
index 6d137ff..546e8e5 100644 (file)
@@ -351,7 +351,7 @@ public:
 
         float delay = 0.0f;
         float duration = 0.0f;
-        if( count < mRowsPerPage*mColumnsPerPage )
+        if( count < ( static_cast< size_t >( mRowsPerPage ) * mColumnsPerPage ) )
         {
           duration = durationPerActor;
           delay = delayBetweenActors * count;
@@ -385,7 +385,7 @@ public:
     Vector3 stageSize( stage.GetSize() );
 
     mScroll = Animation::New(10.0f);
-    size_t actorCount( mRowsPerPage*mColumnsPerPage*mPageCount);
+    size_t actorCount( static_cast< size_t >( mRowsPerPage ) * mColumnsPerPage * mPageCount );
     for( size_t i(0); i<actorCount; ++i )
     {
       if( gUseMesh )
index eded833..2895d82 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -558,15 +558,12 @@ private:
   Toolkit::NavigationView mNavigationView;
 
   Toolkit::Control mView;
-  unsigned int mOrientation;
 
   Toolkit::ToolBar mToolBar;
   TextLabel mTitleActor;
 
   Layer mBuilderLayer;
 
-  Toolkit::Popup mMenu;
-
   TapGestureDetector mTapDetector;
 
   // builder
@@ -576,8 +573,6 @@ private:
 
   FileWatcher mFileWatcher;
   Timer mTimer;
-
-
 };
 
 //------------------------------------------------------------------------------
index 4e2b6d5..eddb106 100644 (file)
@@ -497,7 +497,6 @@ private:
   Toolkit::CheckBoxButton mCheckboxButton3;
 
   Animation      mAnimation;
-  float          mLastPoint;
 
   Toolkit::ImageView mImage;
 };
index f13617a..f5d17c6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -152,6 +152,7 @@ public:
 
   ImageScalingAndFilteringController( Application& application )
   : mApplication( application ),
+    mLastPinchScale( 1.0f ),
     mImageStageScale( 0.5f, 0.5f ),
     mCurrentPath( 0 ),
     mFittingMode( FittingMode::FIT_WIDTH ),
index 12180f2..97ebeba 100644 (file)
@@ -47,6 +47,7 @@ public:
   ImageSvgController( Application& application )
   : mApplication( application ),
     mScale( 1.f ),
+    mScaleAtPinchStart( 1.0f ),
     mIndex( 0 )
   {
     // Connect to the Application's Init signal
index fb461b5..2221bf1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -173,6 +173,7 @@ public:
   : mApplication( application ),
     mView(),
     mAnimationTime(0.0f),
+    mAnimationTimeProperty( Property::INVALID_INDEX ),
     mMagnifierShown(false)
   {
     // Connect to the Application's Init signal
index 2c86504..d2f95f8 100644 (file)
@@ -187,7 +187,6 @@ private:
   Actor             mCompositionActor;
 
   //Motion
-  bool              mExitClick;
   Vector2           mCurrentTouchPosition;
   Vector2           mMetaballPosVariation;
   Vector2           mMetaballPosVariationFrom;
index 74c11fc..55605ba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -143,7 +143,8 @@ public:
   : mApplication(app),
     mActorEffectsEnabled(false),
     mCurrentActorAnimation(0),
-    mCurrentImage(0)
+    mCurrentImage(0),
+    mOrientation( PORTRAIT )
   {
     // Connect to the Application's Init signal
     app.InitSignal().Connect(this, &MotionBlurExampleApp::OnInit);
index cdb631f..4389907 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -110,7 +110,8 @@ public:
   : mApplication(app),
     mActorEffectsEnabled(false),
     mCurrentActorAnimation(0),
-    mCurrentImage(0)
+    mCurrentImage(0),
+    mOrientation( PORTRAIT )
   {
     // Connect to the Application's Init signal
     app.InitSignal().Connect(this, &MotionStretchExampleApp::OnInit);
index 56b74f3..08dff10 100644 (file)
@@ -164,7 +164,8 @@ private:
 
 NewWindowController::NewWindowController( Application& application )
 : mApplication(application),
-  mNeedNewAnimation(true)
+  mNeedNewAnimation(true),
+  mAnimateComponentCount( 0 )
 {
   mApplication.InitSignal().Connect(this, &NewWindowController::Create);
   mApplication.TerminateSignal().Connect(this, &NewWindowController::Destroy);
index ddfd9b8..3bfdda5 100644 (file)
@@ -354,7 +354,7 @@ public:
 
         float delay = 0.0f;
         float duration = 0.0f;
-        if( count < mRowsPerPage*mColumnsPerPage )
+        if( count < ( static_cast< size_t >( mRowsPerPage ) * mColumnsPerPage ) )
         {
           duration = durationPerActor;
           delay = delayBetweenActors * count;
index 4672d7d..6965a41 100644 (file)
@@ -67,6 +67,7 @@ DALI_TYPE_REGISTRATION_END();
 Internal::ImageChannelControl::ImageChannelControl()
 : Control( ControlBehaviour( REQUIRES_STYLE_CHANGE_SIGNALS ) ),
   mChannels( 1.0f, 1.0f, 1.0f ),
+  mChannelIndex( Property::INVALID_INDEX ),
   mVisibility(true),
   mTargetVisibility(true)
 {
index a80a97b..ffd0aaa 100644 (file)
@@ -92,7 +92,8 @@ Property::Index GetChannelProperty( int index )
 
 
 StylingApplication::StylingApplication( Application& application )
-: mApplication( application )
+: mApplication( application ),
+  mCurrentTheme( 0 )
 {
   application.InitSignal().Connect( this, &StylingApplication::Create );
 }
index f5415b2..8e13fff 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -38,7 +38,8 @@ public:
   typedef uint32_t SizeType;
 
   EmojiExample( Application& application )
-  : mApplication( application )
+  : mApplication( application ),
+    mLastPoint( 0.0f )
   {
     std::cout << "EmoticonController::EmoticonController" << std::endl;
 
index c20b8f8..cb29b8d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -47,7 +47,8 @@ class VideoViewController: public ConnectionTracker
       mIsPlay( false ),
       mIsStop( false ),
       mIsFullScreen( false ),
-      mScale( 1.f )
+      mScale( 1.f ),
+      mPinchStartScale( 1.0f )
   {
     // Connect to the Application's Init signal
     mApplication.InitSignal().Connect( this, &VideoViewController::Create );