Merge "Added FileReader and FileWriter classes to wrap FileCloser" into devel/master
[platform/core/uifw/dali-adaptor.git] / adaptors / common / orientation-impl.cpp
index 57379b5..0e3fd0e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
@@ -19,7 +19,6 @@
 #include "orientation-impl.h"
 
 // EXTERNAL INCLUDES
-#include <Ecore.h>
 #include <dali/integration-api/debug.h>
 
 // INTERNAL INCLUDES
@@ -56,7 +55,8 @@ Orientation::~Orientation()
 
 void Orientation::SetAdaptor(Dali::Adaptor& adaptor)
 {
-  Adaptor::GetImplementation(adaptor).SetRotationObserver(this);
+  Adaptor& adaptorImpl = Adaptor::GetImplementation(adaptor);
+  adaptorImpl.SetRotationObserver(this);
 }
 
 int Orientation::GetDegrees() const
@@ -66,10 +66,10 @@ int Orientation::GetDegrees() const
 
 float Orientation::GetRadians() const
 {
-  return Math::PI * (float)mOrientation / 180.0f;
+  return Math::PI * float(mOrientation) / 180.0f;
 }
 
-Orientation::OrientationSignalV2& Orientation::ChangedSignal()
+Orientation::OrientationSignalType& Orientation::ChangedSignal()
 {
   return mChangedSignal;
 }