From 53f9fe2ef16f8124ab976c9995146a0fd342775e Mon Sep 17 00:00:00 2001 From: Subhransu Mohanty Date: Fri, 11 Sep 2020 10:17:42 +0900 Subject: [PATCH] use modern construct '= default' for special functions. This patch is auto generated by clang-tidy with modernize-use-equals-default. excluded automated-tests Change-Id: I50cf90eb5684144a95b263774f3d8b3be8f4518c --- dali/devel-api/animation/animation-data.cpp | 4 +- dali/devel-api/animation/path-constrainer.cpp | 13 ++--- dali/devel-api/common/owner-container.h | 4 +- dali/devel-api/common/singleton-service.cpp | 8 +--- dali/devel-api/common/stage.cpp | 19 ++------ dali/devel-api/events/touch-point.cpp | 4 +- dali/devel-api/signals/signal-delegate.h | 4 +- dali/devel-api/update/update-proxy.cpp | 4 +- dali/integration-api/bitmap.h | 8 +--- dali/integration-api/context-notifier.h | 4 +- dali/integration-api/events/event.cpp | 4 +- dali/integration-api/events/hover-event-integ.cpp | 4 +- dali/integration-api/events/key-event-integ.cpp | 4 +- .../events/multi-point-event-integ.cpp | 4 +- dali/integration-api/events/point.cpp | 4 +- .../events/touch-event-combiner.cpp | 4 +- dali/integration-api/events/touch-event-integ.cpp | 4 +- dali/integration-api/events/wheel-event-integ.cpp | 4 +- dali/integration-api/gl-abstraction.h | 4 +- dali/integration-api/gl-sync-abstraction.h | 8 +--- dali/integration-api/platform-abstraction.h | 4 +- dali/integration-api/processor-interface.h | 4 +- dali/integration-api/render-controller.h | 4 +- dali/integration-api/resource-types.h | 4 +- dali/integration-api/scene.cpp | 19 ++------ dali/internal/common/blending-options.cpp | 4 +- dali/internal/common/image-attributes.cpp | 13 +---- dali/internal/common/message-buffer.cpp | 6 +-- dali/internal/common/message.h | 56 ++++++---------------- dali/internal/common/shader-saver.h | 2 +- .../event/actors/custom-actor-internal.cpp | 4 +- dali/internal/event/actors/layer-list.cpp | 4 +- .../event/animation/animation-playlist.cpp | 8 +--- dali/internal/event/animation/animator-connector.h | 8 +--- dali/internal/event/animation/key-frame-channel.h | 9 +--- dali/internal/event/animation/key-frames-impl.cpp | 5 +- dali/internal/event/animation/key-frames-impl.h | 5 +- .../event/animation/linear-constrainer-impl.cpp | 4 +- .../event/animation/path-constrainer-impl.cpp | 4 +- dali/internal/event/animation/path-impl.cpp | 4 +- dali/internal/event/animation/progress-value.h | 4 +- .../event/animation/property-input-accessor.h | 6 +-- .../event/animation/property-input-indexer.h | 4 +- dali/internal/event/common/base-object-impl.h | 2 +- .../event/common/complete-notification-interface.h | 6 +-- dali/internal/event/common/connectable.h | 2 +- dali/internal/event/common/event-thread-services.h | 3 +- .../internal/event/common/notification-manager.cpp | 4 +- dali/internal/event/common/object-connector.h | 4 +- dali/internal/event/common/object-impl.h | 2 +- .../internal/event/common/object-registry-impl.cpp | 8 +--- .../event/common/property-conditions-impl.cpp | 5 +- dali/internal/event/common/property-input-impl.h | 4 +- dali/internal/event/common/property-metadata.h | 12 ++--- .../event/common/property-notification-manager.cpp | 8 +--- dali/internal/event/common/property-notifier.h | 4 +- dali/internal/event/common/stage-impl.cpp | 4 +- .../internal/event/common/thread-local-storage.cpp | 4 +- dali/internal/event/common/type-info-impl.cpp | 4 +- dali/internal/event/common/type-registry-impl.cpp | 5 +- dali/internal/event/effects/shader-factory.cpp | 4 +- .../event/events/gesture-event-processor.cpp | 4 +- dali/internal/event/events/gesture-event.cpp | 5 +- dali/internal/event/events/gesture-recognizer.h | 5 +- dali/internal/event/events/gesture-requests.h | 12 ++--- .../event/events/hit-test-algorithm-impl.cpp | 4 +- dali/internal/event/events/key-event-processor.cpp | 4 +- .../long-press-gesture-detector-impl.cpp | 4 +- .../long-press-gesture-event.cpp | 4 +- .../long-press-gesture-processor.cpp | 4 +- .../pan-gesture/pan-gesture-detector-impl.cpp | 4 +- .../event/events/pan-gesture/pan-gesture-event.cpp | 4 +- .../events/pan-gesture/pan-gesture-recognizer.cpp | 4 +- .../pinch-gesture/pinch-gesture-detector-impl.cpp | 4 +- .../events/pinch-gesture/pinch-gesture-event.cpp | 4 +- .../pinch-gesture/pinch-gesture-processor.cpp | 4 +- .../pinch-gesture/pinch-gesture-recognizer.cpp | 4 +- .../tap-gesture/tap-gesture-detector-impl.cpp | 4 +- .../event/events/tap-gesture/tap-gesture-event.cpp | 4 +- .../events/tap-gesture/tap-gesture-processor.cpp | 4 +- .../events/tap-gesture/tap-gesture-recognizer.cpp | 4 +- .../event/events/wheel-event-processor.cpp | 4 +- .../event/render-tasks/render-task-defaults.h | 2 +- .../memory-pool-relayout-container.cpp | 4 +- .../render/common/render-instruction-container.cpp | 4 +- dali/internal/render/common/render-item.cpp | 5 +- .../render/data-providers/node-data-provider.h | 4 +- .../render/data-providers/render-data-provider.cpp | 4 +- .../data-providers/uniform-map-data-provider.h | 8 +--- dali/internal/render/gl-resources/context.cpp | 4 +- .../gl-resources/frame-buffer-state-cache.cpp | 4 +- .../render/gl-resources/gl-resource-owner.h | 3 +- .../render/renderers/render-frame-buffer.cpp | 4 +- dali/internal/render/renderers/render-geometry.cpp | 4 +- dali/internal/render/renderers/render-renderer.cpp | 4 +- dali/internal/render/renderers/render-sampler.h | 3 +- dali/internal/render/renderers/render-texture.cpp | 3 +- .../render/renderers/render-vertex-buffer.cpp | 4 +- dali/internal/render/shaders/program-cache.h | 6 +-- .../internal/render/shaders/program-controller.cpp | 4 +- dali/internal/update/animation/property-accessor.h | 12 ++--- .../update/animation/property-component-accessor.h | 16 ++----- .../update/animation/scene-graph-animation.cpp | 4 +- .../update/animation/scene-graph-animator.h | 12 ++--- .../update/animation/scene-graph-constraint.h | 4 +- dali/internal/update/common/animatable-property.h | 39 ++++----------- dali/internal/update/common/discard-queue.cpp | 4 +- dali/internal/update/common/inherited-property.h | 16 ++----- dali/internal/update/common/property-base.cpp | 9 +--- .../update/common/property-owner-messages.cpp | 8 +--- .../update/common/property-owner-messages.h | 8 +--- dali/internal/update/common/property-owner.h | 3 +- .../internal/update/common/scene-graph-buffers.cpp | 4 +- .../scene-graph-connection-change-propagator.cpp | 9 +--- .../scene-graph-connection-change-propagator.h | 3 +- .../common/scene-graph-property-notification.cpp | 4 +- dali/internal/update/common/uniform-map.cpp | 5 +- dali/internal/update/common/uniform-map.h | 2 +- .../controllers/render-message-dispatcher.cpp | 4 +- .../update/controllers/scene-controller-impl.cpp | 4 +- .../internal/update/controllers/scene-controller.h | 8 +--- dali/internal/update/gestures/gesture-properties.h | 12 ++--- .../update/gestures/scene-graph-pan-gesture.h | 11 +---- .../update/manager/frame-callback-processor.cpp | 4 +- dali/internal/update/manager/free-list.h | 3 +- .../manager/render-instruction-processor.cpp | 4 +- .../update/manager/render-task-processor.cpp | 8 +--- .../update/manager/transform-manager-property.h | 12 ++--- dali/internal/update/manager/transform-manager.cpp | 3 +- dali/internal/update/manager/update-manager.h | 8 +--- dali/internal/update/manager/update-proxy-impl.cpp | 4 +- dali/internal/update/nodes/node-messages.cpp | 4 +- dali/internal/update/nodes/node-messages.h | 16 ++----- dali/internal/update/nodes/scene-graph-layer.cpp | 4 +- .../update/render-tasks/scene-graph-camera.cpp | 4 +- .../render-tasks/scene-graph-render-task-list.cpp | 4 +- dali/public-api/actors/actor.cpp | 8 +--- dali/public-api/actors/camera-actor.cpp | 13 ++--- dali/public-api/actors/custom-actor-impl.cpp | 4 +- dali/public-api/actors/custom-actor.cpp | 8 +--- dali/public-api/actors/layer.cpp | 8 +--- dali/public-api/animation/animation.cpp | 8 +--- dali/public-api/animation/constraint.cpp | 8 +--- dali/public-api/animation/constraints.h | 4 +- dali/public-api/animation/key-frames.cpp | 8 +--- dali/public-api/animation/linear-constrainer.cpp | 8 +--- dali/public-api/animation/path.cpp | 8 +--- dali/public-api/animation/time-period.cpp | 4 +- dali/public-api/common/dali-vector.cpp | 4 +- dali/public-api/common/dali-vector.h | 20 ++------ dali/public-api/events/gesture-detector.cpp | 13 ++--- dali/public-api/events/gesture.cpp | 8 +--- dali/public-api/events/hover-event.cpp | 4 +- dali/public-api/events/key-event.cpp | 4 +- .../events/long-press-gesture-detector.cpp | 13 ++--- dali/public-api/events/pan-gesture-detector.cpp | 13 ++--- dali/public-api/events/pinch-gesture-detector.cpp | 13 ++--- .../events/rotation-gesture-detector.cpp | 13 ++--- dali/public-api/events/tap-gesture-detector.cpp | 13 ++--- dali/public-api/events/wheel-event.cpp | 4 +- dali/public-api/images/native-image-interface.h | 4 +- dali/public-api/images/pixel-data.cpp | 8 +--- dali/public-api/math/matrix3.h | 4 +- dali/public-api/math/quaternion.cpp | 4 +- dali/public-api/object/base-handle.cpp | 8 +--- dali/public-api/object/base-object.cpp | 4 +- dali/public-api/object/handle.cpp | 8 +--- dali/public-api/object/object-registry.cpp | 8 +--- dali/public-api/object/property-conditions.cpp | 4 +- dali/public-api/object/property-input.cpp | 4 +- dali/public-api/object/property-notification.cpp | 8 +--- dali/public-api/object/property.cpp | 4 +- dali/public-api/object/type-info.cpp | 8 +--- dali/public-api/object/type-registry.cpp | 8 +--- dali/public-api/object/weak-handle.h | 4 +- dali/public-api/render-tasks/render-task-list.cpp | 8 +--- dali/public-api/render-tasks/render-task.cpp | 8 +--- dali/public-api/rendering/frame-buffer.cpp | 8 +--- dali/public-api/rendering/geometry.cpp | 8 +--- dali/public-api/rendering/renderer.cpp | 8 +--- dali/public-api/rendering/sampler.cpp | 8 +--- dali/public-api/rendering/shader.cpp | 8 +--- dali/public-api/rendering/texture-set.cpp | 8 +--- dali/public-api/rendering/texture.cpp | 8 +--- dali/public-api/rendering/vertex-buffer.cpp | 8 +--- .../signals/connection-tracker-interface.cpp | 8 +--- dali/public-api/signals/connection-tracker.cpp | 4 +- dali/public-api/signals/signal-slot-observers.cpp | 16 ++----- dali/public-api/signals/slot-delegate.h | 4 +- .../size-negotiation/relayout-container.h | 8 +--- 190 files changed, 316 insertions(+), 936 deletions(-) mode change 100755 => 100644 dali/internal/common/image-attributes.cpp mode change 100755 => 100644 dali/internal/event/events/key-event-processor.cpp mode change 100755 => 100644 dali/internal/update/nodes/scene-graph-layer.cpp diff --git a/dali/devel-api/animation/animation-data.cpp b/dali/devel-api/animation/animation-data.cpp index 844240a..9331efd 100644 --- a/dali/devel-api/animation/animation-data.cpp +++ b/dali/devel-api/animation/animation-data.cpp @@ -20,9 +20,7 @@ namespace Dali { -AnimationData::AnimationData() -{ -} +AnimationData::AnimationData() = default; AnimationData::~AnimationData() { diff --git a/dali/devel-api/animation/path-constrainer.cpp b/dali/devel-api/animation/path-constrainer.cpp index 47ae9d7..e431b99 100644 --- a/dali/devel-api/animation/path-constrainer.cpp +++ b/dali/devel-api/animation/path-constrainer.cpp @@ -35,18 +35,11 @@ PathConstrainer PathConstrainer::DownCast(BaseHandle handle) return PathConstrainer(dynamic_cast(handle.GetObjectPtr())); } -PathConstrainer::PathConstrainer() -{ -} +PathConstrainer::PathConstrainer() = default; -PathConstrainer::~PathConstrainer() -{ -} +PathConstrainer::~PathConstrainer() = default; -PathConstrainer::PathConstrainer(const PathConstrainer& handle) -: Handle(handle) -{ -} +PathConstrainer::PathConstrainer(const PathConstrainer& handle) = default; PathConstrainer::PathConstrainer(Internal::PathConstrainer* internal) : Handle(internal) diff --git a/dali/devel-api/common/owner-container.h b/dali/devel-api/common/owner-container.h index d276cd7..6890656 100644 --- a/dali/devel-api/common/owner-container.h +++ b/dali/devel-api/common/owner-container.h @@ -48,9 +48,7 @@ public: /** * Create a pointer-container. */ - OwnerContainer() - { - } + OwnerContainer() = default; /** * Non-virtual destructor; OwnerContainer is not suitable as base class. diff --git a/dali/devel-api/common/singleton-service.cpp b/dali/devel-api/common/singleton-service.cpp index 49ff27e..716cc63 100644 --- a/dali/devel-api/common/singleton-service.cpp +++ b/dali/devel-api/common/singleton-service.cpp @@ -23,18 +23,14 @@ namespace Dali { -SingletonService::SingletonService() -{ -} +SingletonService::SingletonService() = default; SingletonService SingletonService::Get() { return Internal::ThreadLocalStorage::GetSingletonService(); } -SingletonService::~SingletonService() -{ -} +SingletonService::~SingletonService() = default; void SingletonService::Register(const std::type_info& info, BaseHandle singleton) { diff --git a/dali/devel-api/common/stage.cpp b/dali/devel-api/common/stage.cpp index 07c2deb..1729b5a 100644 --- a/dali/devel-api/common/stage.cpp +++ b/dali/devel-api/common/stage.cpp @@ -30,24 +30,13 @@ namespace Dali { using Internal::Core; -Stage::Stage() -{ -} +Stage::Stage() = default; -Stage::~Stage() -{ -} +Stage::~Stage() = default; -Stage::Stage(const Stage& handle) -: BaseHandle(handle) -{ -} +Stage::Stage(const Stage& handle) = default; -Stage& Stage::operator=(const Stage& rhs) -{ - BaseHandle::operator=(rhs); - return *this; -} +Stage& Stage::operator=(const Stage& rhs) = default; Stage::Stage(Internal::Stage* internal) : BaseHandle(internal) diff --git a/dali/devel-api/events/touch-point.cpp b/dali/devel-api/events/touch-point.cpp index eba10cb..07f90d0 100644 --- a/dali/devel-api/events/touch-point.cpp +++ b/dali/devel-api/events/touch-point.cpp @@ -36,8 +36,6 @@ TouchPoint::TouchPoint(int32_t id, PointState::Type state, float screenX, float { } -TouchPoint::~TouchPoint() -{ -} +TouchPoint::~TouchPoint() = default; } // namespace Dali diff --git a/dali/devel-api/signals/signal-delegate.h b/dali/devel-api/signals/signal-delegate.h index 18a5286..4980851 100644 --- a/dali/devel-api/signals/signal-delegate.h +++ b/dali/devel-api/signals/signal-delegate.h @@ -44,9 +44,7 @@ public: /** * @brief Destructor. */ - ~SignalDelegate() - { - } + ~SignalDelegate() = default; public: /** diff --git a/dali/devel-api/update/update-proxy.cpp b/dali/devel-api/update/update-proxy.cpp index c2ba2ad..a79159b 100644 --- a/dali/devel-api/update/update-proxy.cpp +++ b/dali/devel-api/update/update-proxy.cpp @@ -93,8 +93,6 @@ UpdateProxy::UpdateProxy(Internal::UpdateProxy& impl) { } -UpdateProxy::~UpdateProxy() -{ -} +UpdateProxy::~UpdateProxy() = default; } // namespace Dali diff --git a/dali/integration-api/bitmap.h b/dali/integration-api/bitmap.h index 7a21048..1500f12 100644 --- a/dali/integration-api/bitmap.h +++ b/dali/integration-api/bitmap.h @@ -266,9 +266,7 @@ public: /** * Virtual destructor, no deletion through this interface */ - virtual ~PackedPixelsProfile() - { - } + virtual ~PackedPixelsProfile() = default; }; /** @@ -316,9 +314,7 @@ public: /** * Virtual destructor, no deletion through this interface */ - virtual ~CompressedProfile() - { - } + virtual ~CompressedProfile() = default; }; virtual const CompressedProfile* GetCompressedProfile() const diff --git a/dali/integration-api/context-notifier.h b/dali/integration-api/context-notifier.h index cd437e1..4e9c136 100644 --- a/dali/integration-api/context-notifier.h +++ b/dali/integration-api/context-notifier.h @@ -50,9 +50,7 @@ protected: /** * Virtual destructor, no deletion through this interface */ - virtual ~ContextNotifierInterface() - { - } + virtual ~ContextNotifierInterface() = default; }; } // namespace Integration diff --git a/dali/integration-api/events/event.cpp b/dali/integration-api/events/event.cpp index c14a78c..e6953da 100644 --- a/dali/integration-api/events/event.cpp +++ b/dali/integration-api/events/event.cpp @@ -22,9 +22,7 @@ namespace Dali { namespace Integration { -Event::~Event() -{ -} +Event::~Event() = default; Event::Event(Type eventType) : type(eventType) diff --git a/dali/integration-api/events/hover-event-integ.cpp b/dali/integration-api/events/hover-event-integ.cpp index cdbae9a..53744b1 100644 --- a/dali/integration-api/events/hover-event-integ.cpp +++ b/dali/integration-api/events/hover-event-integ.cpp @@ -32,9 +32,7 @@ HoverEvent::HoverEvent(uint32_t time) { } -HoverEvent::~HoverEvent() -{ -} +HoverEvent::~HoverEvent() = default; } // namespace Integration diff --git a/dali/integration-api/events/key-event-integ.cpp b/dali/integration-api/events/key-event-integ.cpp index 0e09d2a..eac7cd3 100644 --- a/dali/integration-api/events/key-event-integ.cpp +++ b/dali/integration-api/events/key-event-integ.cpp @@ -67,9 +67,7 @@ KeyEvent::KeyEvent(const std::string& keyName, { } -KeyEvent::~KeyEvent() -{ -} +KeyEvent::~KeyEvent() = default; } // namespace Integration diff --git a/dali/integration-api/events/multi-point-event-integ.cpp b/dali/integration-api/events/multi-point-event-integ.cpp index f06994f..abc6505 100644 --- a/dali/integration-api/events/multi-point-event-integ.cpp +++ b/dali/integration-api/events/multi-point-event-integ.cpp @@ -37,9 +37,7 @@ MultiPointEvent::MultiPointEvent(Type eventType, uint32_t time) { } -MultiPointEvent::~MultiPointEvent() -{ -} +MultiPointEvent::~MultiPointEvent() = default; void MultiPointEvent::AddPoint(const Point& point) { diff --git a/dali/integration-api/events/point.cpp b/dali/integration-api/events/point.cpp index 6ce4e16..ebba967 100644 --- a/dali/integration-api/events/point.cpp +++ b/dali/integration-api/events/point.cpp @@ -47,9 +47,7 @@ Point::Point(const TouchPoint& touchPoint) { } -Point::~Point() -{ -} +Point::~Point() = default; void Point::SetDeviceId(int32_t deviceId) { diff --git a/dali/integration-api/events/touch-event-combiner.cpp b/dali/integration-api/events/touch-event-combiner.cpp index b38510b..6a5ebc8 100644 --- a/dali/integration-api/events/touch-event-combiner.cpp +++ b/dali/integration-api/events/touch-event-combiner.cpp @@ -78,9 +78,7 @@ TouchEventCombiner::TouchEventCombiner(uint32_t minMotionTime, Vector2 minMotion DALI_ASSERT_ALWAYS(minMotionDistance.x >= 0.0f && minMotionDistance.y >= 0.0f && "Negative values not allowed\n"); } -TouchEventCombiner::~TouchEventCombiner() -{ -} +TouchEventCombiner::~TouchEventCombiner() = default; TouchEventCombiner::EventDispatchType TouchEventCombiner::GetNextTouchEvent(const Point& point, uint32_t time, TouchEvent& touchEvent, HoverEvent& hoverEvent) { diff --git a/dali/integration-api/events/touch-event-integ.cpp b/dali/integration-api/events/touch-event-integ.cpp index ea2e516..e1b1a7a 100644 --- a/dali/integration-api/events/touch-event-integ.cpp +++ b/dali/integration-api/events/touch-event-integ.cpp @@ -32,9 +32,7 @@ TouchEvent::TouchEvent(uint32_t time) { } -TouchEvent::~TouchEvent() -{ -} +TouchEvent::~TouchEvent() = default; } // namespace Integration diff --git a/dali/integration-api/events/wheel-event-integ.cpp b/dali/integration-api/events/wheel-event-integ.cpp index efb3132..e72fbcd 100644 --- a/dali/integration-api/events/wheel-event-integ.cpp +++ b/dali/integration-api/events/wheel-event-integ.cpp @@ -44,9 +44,7 @@ WheelEvent::WheelEvent(Type type, int direction, unsigned int modifiers, Vector2 { } -WheelEvent::~WheelEvent() -{ -} +WheelEvent::~WheelEvent() = default; } // namespace Integration diff --git a/dali/integration-api/gl-abstraction.h b/dali/integration-api/gl-abstraction.h index 8ce11d0..ed36bdc 100644 --- a/dali/integration-api/gl-abstraction.h +++ b/dali/integration-api/gl-abstraction.h @@ -96,9 +96,7 @@ protected: /** * Virtual protected destructor, no deletion through this interface */ - virtual ~GlAbstraction() - { - } + virtual ~GlAbstraction() = default; public: /** diff --git a/dali/integration-api/gl-sync-abstraction.h b/dali/integration-api/gl-sync-abstraction.h index 398d297..cbe440e 100644 --- a/dali/integration-api/gl-sync-abstraction.h +++ b/dali/integration-api/gl-sync-abstraction.h @@ -35,9 +35,7 @@ protected: /** * Virtual protected destructor, no deletion through this interface */ - virtual ~GlSyncAbstraction() - { - } + virtual ~GlSyncAbstraction() = default; public: class SyncObject @@ -48,9 +46,7 @@ public: * Core from deleting SyncObjects - only Adaptor implementation is able to delete * them. */ - virtual ~SyncObject() - { - } + virtual ~SyncObject() = default; public: /** diff --git a/dali/integration-api/platform-abstraction.h b/dali/integration-api/platform-abstraction.h index 4bc3d09..64ce4f7 100644 --- a/dali/integration-api/platform-abstraction.h +++ b/dali/integration-api/platform-abstraction.h @@ -144,9 +144,7 @@ protected: /** * Virtual destructor. */ - virtual ~PlatformAbstraction() - { - } + virtual ~PlatformAbstraction() = default; }; // class PlatformAbstraction diff --git a/dali/integration-api/processor-interface.h b/dali/integration-api/processor-interface.h index 3334a6b..70c01bd 100644 --- a/dali/integration-api/processor-interface.h +++ b/dali/integration-api/processor-interface.h @@ -41,9 +41,7 @@ protected: /** * Virtual protected destructor */ - virtual ~Processor() - { - } + virtual ~Processor() = default; }; } // namespace Integration diff --git a/dali/integration-api/render-controller.h b/dali/integration-api/render-controller.h index 30ab2d3..f337dd6 100644 --- a/dali/integration-api/render-controller.h +++ b/dali/integration-api/render-controller.h @@ -32,9 +32,7 @@ protected: /** * Virtual protected destructor, no deletion through this interface */ - virtual ~RenderController() - { - } + virtual ~RenderController() = default; public: /** diff --git a/dali/integration-api/resource-types.h b/dali/integration-api/resource-types.h index 9d70589..fd0decf 100644 --- a/dali/integration-api/resource-types.h +++ b/dali/integration-api/resource-types.h @@ -60,9 +60,7 @@ struct BitmapResourceType /** * Destructor. */ - ~BitmapResourceType() - { - } + ~BitmapResourceType() = default; /** * Attributes are copied from the request. diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index d24d0ad..9a6af8e 100644 --- a/dali/integration-api/scene.cpp +++ b/dali/integration-api/scene.cpp @@ -38,29 +38,18 @@ Scene Scene::DownCast(BaseHandle handle) return Scene(dynamic_cast(handle.GetObjectPtr())); } -Scene::Scene() -{ -} +Scene::Scene() = default; -Scene::~Scene() -{ -} +Scene::~Scene() = default; -Scene::Scene(const Scene& handle) -: BaseHandle(handle) -{ -} +Scene::Scene(const Scene& handle) = default; Scene::Scene(Internal::Scene* internal) : BaseHandle(internal) { } -Scene& Scene::operator=(const Scene& rhs) -{ - BaseHandle::operator=(rhs); - return *this; -} +Scene& Scene::operator=(const Scene& rhs) = default; void Scene::Add(Actor actor) { diff --git a/dali/internal/common/blending-options.cpp b/dali/internal/common/blending-options.cpp index d2255fa..81b4db4 100644 --- a/dali/internal/common/blending-options.cpp +++ b/dali/internal/common/blending-options.cpp @@ -249,9 +249,7 @@ BlendingOptions::BlendingOptions() SetBlendEquation( BlendEquation::ADD, BlendEquation::ADD ); } -BlendingOptions::~BlendingOptions() -{ -} +BlendingOptions::~BlendingOptions() = default; void BlendingOptions::SetBitmask( unsigned int bitmask ) { diff --git a/dali/internal/common/image-attributes.cpp b/dali/internal/common/image-attributes.cpp old mode 100755 new mode 100644 index 9adf588..005e3b2 --- a/dali/internal/common/image-attributes.cpp +++ b/dali/internal/common/image-attributes.cpp @@ -39,18 +39,9 @@ struct ImageAttributes::ImageAttributesImpl { } - ~ImageAttributesImpl() - { - } + ~ImageAttributesImpl() = default; - ImageAttributesImpl(const ImageAttributesImpl& rhs) - : width( rhs.width ), - height( rhs.height ), - scaling( rhs.scaling ), - filtering( rhs.filtering ), - mOrientationCorrection( rhs.mOrientationCorrection ) - { - } + ImageAttributesImpl(const ImageAttributesImpl& rhs) = default; ImageAttributesImpl& operator=(const ImageAttributesImpl& rhs) { diff --git a/dali/internal/common/message-buffer.cpp b/dali/internal/common/message-buffer.cpp index 5893f91..1621567 100644 --- a/dali/internal/common/message-buffer.cpp +++ b/dali/internal/common/message-buffer.cpp @@ -162,11 +162,7 @@ MessageBuffer::Iterator::Iterator(WordType* current) } } -MessageBuffer::Iterator::Iterator(const Iterator& copy) -: mCurrent( copy.mCurrent ), - mMessageSize( copy.mMessageSize ) -{ -} +MessageBuffer::Iterator::Iterator(const Iterator& copy) = default; } // namespace Internal diff --git a/dali/internal/common/message.h b/dali/internal/common/message.h index 382aa9d..bd2410f 100644 --- a/dali/internal/common/message.h +++ b/dali/internal/common/message.h @@ -41,16 +41,12 @@ public: /** * Construct the message base. */ - MessageBase( ) - { - } + MessageBase() = default; /** * Virtual destructor */ - virtual ~MessageBase() - { - } + virtual ~MessageBase() = default; /** * Called to process the message. @@ -90,9 +86,7 @@ public: /** * Virtual destructor */ - ~Message() override - { - } + ~Message() override = default; /** * @copydoc MessageBase::Process @@ -143,9 +137,7 @@ public: /** * Virtual destructor */ - ~MessageValue1() override - { - } + ~MessageValue1() override = default; /** * @copydoc MessageBase::Process @@ -201,9 +193,7 @@ public: /** * Virtual destructor */ - ~MessageValue2() override - { - } + ~MessageValue2() override = default; /** * @copydoc MessageBase::Process @@ -262,9 +252,7 @@ public: /** * Virtual destructor */ - ~MessageValue3() override - { - } + ~MessageValue3() override = default; /** * @copydoc MessageBase::Process @@ -327,9 +315,7 @@ public: /** * Virtual destructor */ - ~MessageValue4() override - { - } + ~MessageValue4() override = default; /** * @copydoc MessageBase::Process @@ -396,9 +382,7 @@ public: /** * Virtual destructor */ - ~MessageValue5() override - { - } + ~MessageValue5() override = default; /** * @copydoc MessageBase::Process @@ -469,9 +453,7 @@ public: /** * Virtual destructor */ - ~MessageValue6() override - { - } + ~MessageValue6() override = default; /** * @copydoc MessageBase::Process @@ -522,9 +504,7 @@ public: /** * Virtual destructor */ - ~MessageDoubleBuffered0() override - { - } + ~MessageDoubleBuffered0() override = default; /** * @copydoc MessageBase::Process @@ -576,9 +556,7 @@ public: /** * Virtual destructor */ - ~MessageDoubleBuffered1() override - { - } + ~MessageDoubleBuffered1() override = default; /** * @copydoc MessageBase::Process @@ -633,9 +611,7 @@ public: /** * Virtual destructor */ - ~MessageDoubleBuffered2() override - { - } + ~MessageDoubleBuffered2() override = default; /** * @copydoc MessageBase::Process @@ -695,9 +671,7 @@ public: /** * Virtual destructor */ - ~MessageDoubleBuffered3() override - { - } + ~MessageDoubleBuffered3() override = default; /** * @copydoc MessageBase::Process @@ -760,9 +734,7 @@ public: /** * Virtual destructor */ - ~MessageDoubleBuffered4() override - { - } + ~MessageDoubleBuffered4() override = default; /** * @copydoc MessageBase::Process diff --git a/dali/internal/common/shader-saver.h b/dali/internal/common/shader-saver.h index e53185c..8b83ae3 100644 --- a/dali/internal/common/shader-saver.h +++ b/dali/internal/common/shader-saver.h @@ -50,7 +50,7 @@ protected: * Destructor. Protected as no derived class should ever be deleted * through a reference to this pure abstract interface. */ - virtual ~ShaderSaver(){} + virtual ~ShaderSaver() = default; }; } // namespace Internal diff --git a/dali/internal/event/actors/custom-actor-internal.cpp b/dali/internal/event/actors/custom-actor-internal.cpp index f85f07b..33f302a 100644 --- a/dali/internal/event/actors/custom-actor-internal.cpp +++ b/dali/internal/event/actors/custom-actor-internal.cpp @@ -43,9 +43,7 @@ CustomActor::CustomActor( const SceneGraph::Node& node, CustomActorImpl& extensi SetRelayoutEnabled( extension.IsRelayoutEnabled() ); } -CustomActor::~CustomActor() -{ -} +CustomActor::~CustomActor() = default; Dali::TypeInfo CustomActor::GetTypeInfo() { diff --git a/dali/internal/event/actors/layer-list.cpp b/dali/internal/event/actors/layer-list.cpp index e378101..60c7bee 100644 --- a/dali/internal/event/actors/layer-list.cpp +++ b/dali/internal/event/actors/layer-list.cpp @@ -65,9 +65,7 @@ LayerList* LayerList::New( SceneGraph::UpdateManager& updateManager ) return new LayerList( updateManager ); } -LayerList::~LayerList() -{ -} +LayerList::~LayerList() = default; uint32_t LayerList::GetLayerCount() const { diff --git a/dali/internal/event/animation/animation-playlist.cpp b/dali/internal/event/animation/animation-playlist.cpp index c39385f..d48d28d 100644 --- a/dali/internal/event/animation/animation-playlist.cpp +++ b/dali/internal/event/animation/animation-playlist.cpp @@ -35,13 +35,9 @@ AnimationPlaylist* AnimationPlaylist::New() return new AnimationPlaylist(); } -AnimationPlaylist::AnimationPlaylist() -{ -} +AnimationPlaylist::AnimationPlaylist() = default; -AnimationPlaylist::~AnimationPlaylist() -{ -} +AnimationPlaylist::~AnimationPlaylist() = default; void AnimationPlaylist::AnimationCreated( Animation& animation ) { diff --git a/dali/internal/event/animation/animator-connector.h b/dali/internal/event/animation/animator-connector.h index e0a2894..48bd693 100644 --- a/dali/internal/event/animation/animator-connector.h +++ b/dali/internal/event/animation/animator-connector.h @@ -74,9 +74,7 @@ public: /** * Virtual destructor. */ - ~AnimatorConnector() override - { - } + ~AnimatorConnector() override = default; private: @@ -173,9 +171,7 @@ public: /** * Virtual destructor. */ - ~AnimatorConnector() override - { - } + ~AnimatorConnector() override = default; private: diff --git a/dali/internal/event/animation/key-frame-channel.h b/dali/internal/event/animation/key-frame-channel.h index 05e5fde..820340c 100644 --- a/dali/internal/event/animation/key-frame-channel.h +++ b/dali/internal/event/animation/key-frame-channel.h @@ -41,9 +41,7 @@ public: { } - virtual ~KeyFrameChannelBase() - { - } + virtual ~KeyFrameChannelBase() = default; KeyFrameChannelId GetId() const { @@ -69,10 +67,7 @@ public: { } - - ~KeyFrameChannel() override - { - } + ~KeyFrameChannel() override = default; bool IsActive (float progress) override; diff --git a/dali/internal/event/animation/key-frames-impl.cpp b/dali/internal/event/animation/key-frames-impl.cpp index 1e89e0f..fa265cc 100644 --- a/dali/internal/event/animation/key-frames-impl.cpp +++ b/dali/internal/event/animation/key-frames-impl.cpp @@ -34,10 +34,7 @@ KeyFrames::KeyFrames() { } -KeyFrames::~KeyFrames() -{ -} - +KeyFrames::~KeyFrames() = default; void KeyFrames::CreateKeyFramesSpec(Property::Type type) { diff --git a/dali/internal/event/animation/key-frames-impl.h b/dali/internal/event/animation/key-frames-impl.h index 78df8e8..989e481 100644 --- a/dali/internal/event/animation/key-frames-impl.h +++ b/dali/internal/event/animation/key-frames-impl.h @@ -115,8 +115,7 @@ private: class KeyFrameSpec : public RefObject { public: - - KeyFrameSpec() {} + KeyFrameSpec() = default; virtual std::size_t GetNumberOfKeyFrames() const = 0; @@ -132,7 +131,7 @@ protected: /** * A reference counted object may only be deleted by calling Unreference() */ - ~KeyFrameSpec() override {} + ~KeyFrameSpec() override = default; }; diff --git a/dali/internal/event/animation/linear-constrainer-impl.cpp b/dali/internal/event/animation/linear-constrainer-impl.cpp index c357e41..1b4c463 100644 --- a/dali/internal/event/animation/linear-constrainer-impl.cpp +++ b/dali/internal/event/animation/linear-constrainer-impl.cpp @@ -63,9 +63,7 @@ LinearConstrainer::LinearConstrainer() { } -LinearConstrainer::~LinearConstrainer() -{ -} +LinearConstrainer::~LinearConstrainer() = default; Property::Value LinearConstrainer::GetDefaultProperty( Property::Index index ) const { diff --git a/dali/internal/event/animation/path-constrainer-impl.cpp b/dali/internal/event/animation/path-constrainer-impl.cpp index 63eb9f7..bcae22e 100644 --- a/dali/internal/event/animation/path-constrainer-impl.cpp +++ b/dali/internal/event/animation/path-constrainer-impl.cpp @@ -64,9 +64,7 @@ PathConstrainer::PathConstrainer() { } -PathConstrainer::~PathConstrainer() -{ -} +PathConstrainer::~PathConstrainer() = default; Property::Value PathConstrainer::GetDefaultProperty( Property::Index index ) const { diff --git a/dali/internal/event/animation/path-impl.cpp b/dali/internal/event/animation/path-impl.cpp index c5455a4..c891349 100644 --- a/dali/internal/event/animation/path-impl.cpp +++ b/dali/internal/event/animation/path-impl.cpp @@ -86,9 +86,7 @@ Path::Path() { } -Path::~Path() -{ -} +Path::~Path() = default; Path* Path::Clone(const Path& path) { diff --git a/dali/internal/event/animation/progress-value.h b/dali/internal/event/animation/progress-value.h index 0a7ca11..1657bec 100644 --- a/dali/internal/event/animation/progress-value.h +++ b/dali/internal/event/animation/progress-value.h @@ -44,9 +44,7 @@ public: { } - ~ProgressValue () - { - } + ~ProgressValue() = default; float GetProgress () const { diff --git a/dali/internal/event/animation/property-input-accessor.h b/dali/internal/event/animation/property-input-accessor.h index 6cc3d80..482d1ca 100644 --- a/dali/internal/event/animation/property-input-accessor.h +++ b/dali/internal/event/animation/property-input-accessor.h @@ -53,11 +53,7 @@ public: /** * Copy from a PropertyInputAccessor */ - PropertyInputAccessor( const PropertyInputAccessor& accessor ) - : mInput( accessor.mInput ), - mComponentIndex( accessor.mComponentIndex ) - { - } + PropertyInputAccessor(const PropertyInputAccessor& accessor) = default; /** * Copy from a PropertyInputAccessor diff --git a/dali/internal/event/animation/property-input-indexer.h b/dali/internal/event/animation/property-input-indexer.h index e9088af..ed1ea0b 100644 --- a/dali/internal/event/animation/property-input-indexer.h +++ b/dali/internal/event/animation/property-input-indexer.h @@ -73,9 +73,7 @@ public: /** * Virtual Destructor */ - ~PropertyInputIndexer() override - { - } + ~PropertyInputIndexer() override = default; /** * @copydoc Dali::Internal::PropertyInput::GetType() diff --git a/dali/internal/event/common/base-object-impl.h b/dali/internal/event/common/base-object-impl.h index 5bb491f..501521d 100755 --- a/dali/internal/event/common/base-object-impl.h +++ b/dali/internal/event/common/base-object-impl.h @@ -70,7 +70,7 @@ public: /** * Virtual destructor */ - virtual ~Observer() {} + virtual ~Observer() = default; }; /** diff --git a/dali/internal/event/common/complete-notification-interface.h b/dali/internal/event/common/complete-notification-interface.h index 40ae686..d802d4f 100644 --- a/dali/internal/event/common/complete-notification-interface.h +++ b/dali/internal/event/common/complete-notification-interface.h @@ -37,14 +37,12 @@ protected: /** * Constructor, not to be directly instantiated. */ - CompleteNotificationInterface() - {} + CompleteNotificationInterface() = default; /** * Virtual destructor as this is an interface, no deletion through this interface though. */ - virtual ~CompleteNotificationInterface() - {} + virtual ~CompleteNotificationInterface() = default; public: diff --git a/dali/internal/event/common/connectable.h b/dali/internal/event/common/connectable.h index 8c2d1e7..cb087fe 100644 --- a/dali/internal/event/common/connectable.h +++ b/dali/internal/event/common/connectable.h @@ -35,7 +35,7 @@ public: /** * @brief Destructor */ - virtual ~Connectable() {} + virtual ~Connectable() = default; /** * @brief Check if the object is on the scene diff --git a/dali/internal/event/common/event-thread-services.h b/dali/internal/event/common/event-thread-services.h index 68e52e6..7e75e29 100644 --- a/dali/internal/event/common/event-thread-services.h +++ b/dali/internal/event/common/event-thread-services.h @@ -54,8 +54,7 @@ public: /** * Virtual destructor */ - virtual ~EventThreadServices() - { } + virtual ~EventThreadServices() = default; /** * Get the EventThreadServices diff --git a/dali/internal/event/common/notification-manager.cpp b/dali/internal/event/common/notification-manager.cpp index 9dc08ba..f80b6e2 100644 --- a/dali/internal/event/common/notification-manager.cpp +++ b/dali/internal/event/common/notification-manager.cpp @@ -86,9 +86,7 @@ struct NotificationManager::Impl eventInterfaceQueue.Reserve( 4 ); } - ~Impl() - { - } + ~Impl() = default; // queueMutex must be locked whilst accessing queue MessageQueueMutex queueMutex; diff --git a/dali/internal/event/common/object-connector.h b/dali/internal/event/common/object-connector.h index 22319b8..40fa975 100644 --- a/dali/internal/event/common/object-connector.h +++ b/dali/internal/event/common/object-connector.h @@ -41,12 +41,12 @@ public: /** * @brief Default constructor. */ - ObjectConnector() {} + ObjectConnector() = default; /** * @brief Destructor. */ - ~ObjectConnector() {} + ~ObjectConnector() = default; /** * @brief Copy constructor diff --git a/dali/internal/event/common/object-impl.h b/dali/internal/event/common/object-impl.h index 64d9c8c..fffe3ee 100644 --- a/dali/internal/event/common/object-impl.h +++ b/dali/internal/event/common/object-impl.h @@ -109,7 +109,7 @@ public: /** * Virtual destructor */ - virtual ~Observer(){} + virtual ~Observer() = default; }; /** diff --git a/dali/internal/event/common/object-registry-impl.cpp b/dali/internal/event/common/object-registry-impl.cpp index 8ef38e1..a12f485 100644 --- a/dali/internal/event/common/object-registry-impl.cpp +++ b/dali/internal/event/common/object-registry-impl.cpp @@ -53,13 +53,9 @@ ObjectRegistryPtr ObjectRegistry::New() return ObjectRegistryPtr( new ObjectRegistry() ); } -ObjectRegistry::ObjectRegistry() -{ -} +ObjectRegistry::ObjectRegistry() = default; -ObjectRegistry::~ObjectRegistry() -{ -} +ObjectRegistry::~ObjectRegistry() = default; void ObjectRegistry::RegisterObject( Dali::BaseObject* object ) { diff --git a/dali/internal/event/common/property-conditions-impl.cpp b/dali/internal/event/common/property-conditions-impl.cpp index 06557ae..f1a502f 100644 --- a/dali/internal/event/common/property-conditions-impl.cpp +++ b/dali/internal/event/common/property-conditions-impl.cpp @@ -30,10 +30,7 @@ PropertyCondition::PropertyCondition() } -PropertyCondition::~PropertyCondition() -{ - -} +PropertyCondition::~PropertyCondition() = default; } // namespace Internal diff --git a/dali/internal/event/common/property-input-impl.h b/dali/internal/event/common/property-input-impl.h index bd8d4ec..081a81c 100644 --- a/dali/internal/event/common/property-input-impl.h +++ b/dali/internal/event/common/property-input-impl.h @@ -57,9 +57,7 @@ public: /** * Virtual destructor. */ - virtual ~PropertyInputImpl() - { - } + virtual ~PropertyInputImpl() = default; /** * Query the type of property input. diff --git a/dali/internal/event/common/property-metadata.h b/dali/internal/event/common/property-metadata.h index a363ea1..3dbf675 100644 --- a/dali/internal/event/common/property-metadata.h +++ b/dali/internal/event/common/property-metadata.h @@ -61,9 +61,7 @@ public: /** * @brief Virtual Destructor. */ - virtual ~PropertyMetadata() - { - } + virtual ~PropertyMetadata() = default; /** * @brief Returns whether the property is animatable (i.e. if its a scene graph property). @@ -233,9 +231,7 @@ public: /** * @brief Destructor. */ - ~AnimatablePropertyMetadata() override - { - } + ~AnimatablePropertyMetadata() override = default; private: @@ -296,9 +292,7 @@ public: /** * @brief Destructor. */ - ~CustomPropertyMetadata() override - { - } + ~CustomPropertyMetadata() override = default; private: diff --git a/dali/internal/event/common/property-notification-manager.cpp b/dali/internal/event/common/property-notification-manager.cpp index 45cec79..b879923 100644 --- a/dali/internal/event/common/property-notification-manager.cpp +++ b/dali/internal/event/common/property-notification-manager.cpp @@ -33,9 +33,7 @@ PropertyNotificationManager* PropertyNotificationManager::New() return new PropertyNotificationManager; } -PropertyNotificationManager::~PropertyNotificationManager() -{ -} +PropertyNotificationManager::~PropertyNotificationManager() = default; void PropertyNotificationManager::PropertyNotificationCreated( PropertyNotification& propertyNotification ) { @@ -70,9 +68,7 @@ void PropertyNotificationManager::NotifyProperty( SceneGraph::PropertyNotificati } } -PropertyNotificationManager::PropertyNotificationManager() -{ -} +PropertyNotificationManager::PropertyNotificationManager() = default; } // namespace Internal diff --git a/dali/internal/event/common/property-notifier.h b/dali/internal/event/common/property-notifier.h index 6fd0ea5..3899719 100644 --- a/dali/internal/event/common/property-notifier.h +++ b/dali/internal/event/common/property-notifier.h @@ -44,9 +44,7 @@ public: /** * Virtual destructor. */ - virtual ~PropertyNotifier() - { - } + virtual ~PropertyNotifier() = default; /** * Provide notification signals for a changed property. diff --git a/dali/internal/event/common/stage-impl.cpp b/dali/internal/event/common/stage-impl.cpp index beae510..87c2d37 100644 --- a/dali/internal/event/common/stage-impl.cpp +++ b/dali/internal/event/common/stage-impl.cpp @@ -400,9 +400,7 @@ Stage::Stage( SceneGraph::UpdateManager& updateManager ) { } -Stage::~Stage() -{ -} +Stage::~Stage() = default; } // namespace Internal diff --git a/dali/internal/event/common/thread-local-storage.cpp b/dali/internal/event/common/thread-local-storage.cpp index 2424d41..5962768 100644 --- a/dali/internal/event/common/thread-local-storage.cpp +++ b/dali/internal/event/common/thread-local-storage.cpp @@ -59,9 +59,7 @@ ThreadLocalStorage::ThreadLocalStorage(Core* core) threadLocal = this; } -ThreadLocalStorage::~ThreadLocalStorage() -{ -} +ThreadLocalStorage::~ThreadLocalStorage() = default; void ThreadLocalStorage::Remove() { diff --git a/dali/internal/event/common/type-info-impl.cpp b/dali/internal/event/common/type-info-impl.cpp index 81155ef..7230c36 100644 --- a/dali/internal/event/common/type-info-impl.cpp +++ b/dali/internal/event/common/type-info-impl.cpp @@ -176,9 +176,7 @@ TypeInfo::TypeInfo(const std::string &name, const std::string &baseTypeName, Dal DALI_ASSERT_ALWAYS(!baseTypeName.empty() && "Type info construction must have a base type name"); } -TypeInfo::~TypeInfo() -{ -} +TypeInfo::~TypeInfo() = default; BaseHandle TypeInfo::CreateInstance() const { diff --git a/dali/internal/event/common/type-registry-impl.cpp b/dali/internal/event/common/type-registry-impl.cpp index 9c79314..de44e8e 100644 --- a/dali/internal/event/common/type-registry-impl.cpp +++ b/dali/internal/event/common/type-registry-impl.cpp @@ -49,10 +49,7 @@ TypeRegistry *TypeRegistry::Get() return _reg; } -TypeRegistry::TypeRegistry() -{ - -} +TypeRegistry::TypeRegistry() = default; TypeRegistry::~TypeRegistry() { diff --git a/dali/internal/event/effects/shader-factory.cpp b/dali/internal/event/effects/shader-factory.cpp index 59832f9..c91f2ed 100644 --- a/dali/internal/event/effects/shader-factory.cpp +++ b/dali/internal/event/effects/shader-factory.cpp @@ -60,9 +60,7 @@ void shaderBinaryFilename( size_t shaderHash, std::string& filename ) } -ShaderFactory::ShaderFactory() -{ -} +ShaderFactory::ShaderFactory() = default; ShaderFactory::~ShaderFactory() { diff --git a/dali/internal/event/events/gesture-event-processor.cpp b/dali/internal/event/events/gesture-event-processor.cpp index 5c9be29..d25d90b 100644 --- a/dali/internal/event/events/gesture-event-processor.cpp +++ b/dali/internal/event/events/gesture-event-processor.cpp @@ -48,9 +48,7 @@ GestureEventProcessor::GestureEventProcessor( SceneGraph::UpdateManager& updateM { } -GestureEventProcessor::~GestureEventProcessor() -{ -} +GestureEventProcessor::~GestureEventProcessor() = default; void GestureEventProcessor::ProcessTouchEvent( Scene& scene, const Integration::TouchEvent& event) { diff --git a/dali/internal/event/events/gesture-event.cpp b/dali/internal/event/events/gesture-event.cpp index 9591ac3..680fa6d 100644 --- a/dali/internal/event/events/gesture-event.cpp +++ b/dali/internal/event/events/gesture-event.cpp @@ -23,10 +23,7 @@ namespace Dali namespace Internal { - -GestureEvent::~GestureEvent() -{ -} +GestureEvent::~GestureEvent() = default; GestureEvent::GestureEvent( GestureType::Value gesture, GestureState gestureState ) : gestureType( gesture ), diff --git a/dali/internal/event/events/gesture-recognizer.h b/dali/internal/event/events/gesture-recognizer.h index f53e573..bef97a7 100644 --- a/dali/internal/event/events/gesture-recognizer.h +++ b/dali/internal/event/events/gesture-recognizer.h @@ -44,7 +44,8 @@ class RecognizerObserver public: virtual void Process( Scene& scene, const T& event ) = 0; - virtual ~RecognizerObserver(){}; + virtual ~RecognizerObserver() = default; + ; }; @@ -116,7 +117,7 @@ protected: /** * Virtual destructor. */ - ~GestureRecognizer() override {} + ~GestureRecognizer() override = default; protected: Vector2 mScreenSize; diff --git a/dali/internal/event/events/gesture-requests.h b/dali/internal/event/events/gesture-requests.h index be7ab70..aad5e37 100644 --- a/dali/internal/event/events/gesture-requests.h +++ b/dali/internal/event/events/gesture-requests.h @@ -73,9 +73,7 @@ struct PanGestureRequest : public GestureRequest /** * Virtual destructor */ - ~PanGestureRequest() override - { - } + ~PanGestureRequest() override = default; // Data Members @@ -105,9 +103,7 @@ struct TapGestureRequest : public GestureRequest /** * Virtual destructor */ - ~TapGestureRequest() override - { - } + ~TapGestureRequest() override = default; // Data Members @@ -137,9 +133,7 @@ struct LongPressGestureRequest : public GestureRequest /** * Virtual destructor */ - ~LongPressGestureRequest() override - { - } + ~LongPressGestureRequest() override = default; // Data Members diff --git a/dali/internal/event/events/hit-test-algorithm-impl.cpp b/dali/internal/event/events/hit-test-algorithm-impl.cpp index 587df4d..25d6a42 100644 --- a/dali/internal/event/events/hit-test-algorithm-impl.cpp +++ b/dali/internal/event/events/hit-test-algorithm-impl.cpp @@ -603,9 +603,7 @@ bool HitTestForEachRenderTask( const Vector2& sceneSize, } // unnamed namespace -HitTestInterface::~HitTestInterface() -{ -} +HitTestInterface::~HitTestInterface() = default; bool HitTest( const Vector2& sceneSize, RenderTaskList& taskList, LayerList& layerList, const Vector2& screenCoordinates, Dali::HitTestAlgorithm::Results& results, Dali::HitTestAlgorithm::HitTestFunction func ) { diff --git a/dali/internal/event/events/key-event-processor.cpp b/dali/internal/event/events/key-event-processor.cpp old mode 100755 new mode 100644 index e72adc3..1bb2f1a --- a/dali/internal/event/events/key-event-processor.cpp +++ b/dali/internal/event/events/key-event-processor.cpp @@ -35,9 +35,7 @@ KeyEventProcessor::KeyEventProcessor( Scene& scene ) { } -KeyEventProcessor::~KeyEventProcessor() -{ -} +KeyEventProcessor::~KeyEventProcessor() = default; void KeyEventProcessor::ProcessKeyEvent( const Integration::KeyEvent& event ) { diff --git a/dali/internal/event/events/long-press-gesture/long-press-gesture-detector-impl.cpp b/dali/internal/event/events/long-press-gesture/long-press-gesture-detector-impl.cpp index 3c832a5..75b07de 100644 --- a/dali/internal/event/events/long-press-gesture/long-press-gesture-detector-impl.cpp +++ b/dali/internal/event/events/long-press-gesture/long-press-gesture-detector-impl.cpp @@ -85,9 +85,7 @@ LongPressGestureDetector::LongPressGestureDetector(unsigned int minTouches, unsi { } -LongPressGestureDetector::~LongPressGestureDetector() -{ -} +LongPressGestureDetector::~LongPressGestureDetector() = default; void LongPressGestureDetector::SetTouchesRequired(unsigned int touches) { diff --git a/dali/internal/event/events/long-press-gesture/long-press-gesture-event.cpp b/dali/internal/event/events/long-press-gesture/long-press-gesture-event.cpp index 1dae742..3ff0618 100644 --- a/dali/internal/event/events/long-press-gesture/long-press-gesture-event.cpp +++ b/dali/internal/event/events/long-press-gesture/long-press-gesture-event.cpp @@ -30,9 +30,7 @@ LongPressGestureEvent::LongPressGestureEvent( GestureState state ) { } -LongPressGestureEvent::~LongPressGestureEvent() -{ -} +LongPressGestureEvent::~LongPressGestureEvent() = default; } // namespace Internal diff --git a/dali/internal/event/events/long-press-gesture/long-press-gesture-processor.cpp b/dali/internal/event/events/long-press-gesture/long-press-gesture-processor.cpp index 1090aab..224e74f 100644 --- a/dali/internal/event/events/long-press-gesture/long-press-gesture-processor.cpp +++ b/dali/internal/event/events/long-press-gesture/long-press-gesture-processor.cpp @@ -113,9 +113,7 @@ LongPressGestureProcessor::LongPressGestureProcessor() { } -LongPressGestureProcessor::~LongPressGestureProcessor() -{ -} +LongPressGestureProcessor::~LongPressGestureProcessor() = default; void LongPressGestureProcessor::Process( Scene& scene, const LongPressGestureEvent& longPressEvent ) { diff --git a/dali/internal/event/events/pan-gesture/pan-gesture-detector-impl.cpp b/dali/internal/event/events/pan-gesture/pan-gesture-detector-impl.cpp index bc1e201..efdaf04 100644 --- a/dali/internal/event/events/pan-gesture/pan-gesture-detector-impl.cpp +++ b/dali/internal/event/events/pan-gesture/pan-gesture-detector-impl.cpp @@ -302,9 +302,7 @@ PanGestureDetector::PanGestureDetector( const SceneGraph::PanGesture& sceneObjec { } -PanGestureDetector::~PanGestureDetector() -{ -} +PanGestureDetector::~PanGestureDetector() = default; const SceneGraph::PanGesture& PanGestureDetector::GetPanGestureSceneObject() const { diff --git a/dali/internal/event/events/pan-gesture/pan-gesture-event.cpp b/dali/internal/event/events/pan-gesture/pan-gesture-event.cpp index fa17b11..d67d463 100644 --- a/dali/internal/event/events/pan-gesture/pan-gesture-event.cpp +++ b/dali/internal/event/events/pan-gesture/pan-gesture-event.cpp @@ -32,9 +32,7 @@ PanGestureEvent::PanGestureEvent(GestureState state) { } -PanGestureEvent::~PanGestureEvent() -{ -} +PanGestureEvent::~PanGestureEvent() = default; } // namespace Internal diff --git a/dali/internal/event/events/pan-gesture/pan-gesture-recognizer.cpp b/dali/internal/event/events/pan-gesture/pan-gesture-recognizer.cpp index be9b307..46ca899 100644 --- a/dali/internal/event/events/pan-gesture/pan-gesture-recognizer.cpp +++ b/dali/internal/event/events/pan-gesture/pan-gesture-recognizer.cpp @@ -74,9 +74,7 @@ PanGestureRecognizer::PanGestureRecognizer( Observer& observer, Vector2 screenSi } } -PanGestureRecognizer::~PanGestureRecognizer() -{ -} +PanGestureRecognizer::~PanGestureRecognizer() = default; void PanGestureRecognizer::SendEvent(const Integration::TouchEvent& event) { diff --git a/dali/internal/event/events/pinch-gesture/pinch-gesture-detector-impl.cpp b/dali/internal/event/events/pinch-gesture/pinch-gesture-detector-impl.cpp index 6584d2d..2f62e91 100644 --- a/dali/internal/event/events/pinch-gesture/pinch-gesture-detector-impl.cpp +++ b/dali/internal/event/events/pinch-gesture/pinch-gesture-detector-impl.cpp @@ -62,9 +62,7 @@ PinchGestureDetector::PinchGestureDetector() { } -PinchGestureDetector::~PinchGestureDetector() -{ -} +PinchGestureDetector::~PinchGestureDetector() = default; void PinchGestureDetector::EmitPinchGestureSignal(Dali::Actor actor, const Dali::PinchGesture& pinch) { diff --git a/dali/internal/event/events/pinch-gesture/pinch-gesture-event.cpp b/dali/internal/event/events/pinch-gesture/pinch-gesture-event.cpp index fa9841b..f65150d 100644 --- a/dali/internal/event/events/pinch-gesture/pinch-gesture-event.cpp +++ b/dali/internal/event/events/pinch-gesture/pinch-gesture-event.cpp @@ -35,9 +35,7 @@ PinchGestureEvent::PinchGestureEvent(GestureState state) { } -PinchGestureEvent::~PinchGestureEvent() -{ -} +PinchGestureEvent::~PinchGestureEvent() = default; } // namespace Internal diff --git a/dali/internal/event/events/pinch-gesture/pinch-gesture-processor.cpp b/dali/internal/event/events/pinch-gesture/pinch-gesture-processor.cpp index 88172af..210cbf0 100644 --- a/dali/internal/event/events/pinch-gesture/pinch-gesture-processor.cpp +++ b/dali/internal/event/events/pinch-gesture/pinch-gesture-processor.cpp @@ -115,9 +115,7 @@ PinchGestureProcessor::PinchGestureProcessor() { } -PinchGestureProcessor::~PinchGestureProcessor() -{ -} +PinchGestureProcessor::~PinchGestureProcessor() = default; void PinchGestureProcessor::SetMinimumPinchDistance( float value ) { diff --git a/dali/internal/event/events/pinch-gesture/pinch-gesture-recognizer.cpp b/dali/internal/event/events/pinch-gesture/pinch-gesture-recognizer.cpp index 134dee4..9108a11 100644 --- a/dali/internal/event/events/pinch-gesture/pinch-gesture-recognizer.cpp +++ b/dali/internal/event/events/pinch-gesture/pinch-gesture-recognizer.cpp @@ -78,9 +78,7 @@ PinchGestureRecognizer::PinchGestureRecognizer( Observer& observer, Vector2 scre SetMinimumPinchDistance( minimumPinchDistance ); } -PinchGestureRecognizer::~PinchGestureRecognizer() -{ -} +PinchGestureRecognizer::~PinchGestureRecognizer() = default; void PinchGestureRecognizer::SetMinimumPinchDistance(float value) { diff --git a/dali/internal/event/events/tap-gesture/tap-gesture-detector-impl.cpp b/dali/internal/event/events/tap-gesture/tap-gesture-detector-impl.cpp index bdca9c6..a3f13c4 100644 --- a/dali/internal/event/events/tap-gesture/tap-gesture-detector-impl.cpp +++ b/dali/internal/event/events/tap-gesture/tap-gesture-detector-impl.cpp @@ -79,9 +79,7 @@ TapGestureDetector::TapGestureDetector( unsigned int tapsRequired ) { } -TapGestureDetector::~TapGestureDetector() -{ -} +TapGestureDetector::~TapGestureDetector() = default; void TapGestureDetector::SetMinimumTapsRequired(unsigned int taps) { diff --git a/dali/internal/event/events/tap-gesture/tap-gesture-event.cpp b/dali/internal/event/events/tap-gesture/tap-gesture-event.cpp index 405a906..cbc3e0a 100644 --- a/dali/internal/event/events/tap-gesture/tap-gesture-event.cpp +++ b/dali/internal/event/events/tap-gesture/tap-gesture-event.cpp @@ -31,9 +31,7 @@ TapGestureEvent::TapGestureEvent( GestureState state ) { } -TapGestureEvent::~TapGestureEvent() -{ -} +TapGestureEvent::~TapGestureEvent() = default; } // namespace Internal diff --git a/dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp b/dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp index e710f75..7b3fce6 100644 --- a/dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp +++ b/dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp @@ -86,9 +86,7 @@ TapGestureProcessor::TapGestureProcessor() { } -TapGestureProcessor::~TapGestureProcessor() -{ -} +TapGestureProcessor::~TapGestureProcessor() = default; void TapGestureProcessor::Process( Scene& scene, const TapGestureEvent& tapEvent ) { diff --git a/dali/internal/event/events/tap-gesture/tap-gesture-recognizer.cpp b/dali/internal/event/events/tap-gesture/tap-gesture-recognizer.cpp index 5daa963..15b6e7e 100644 --- a/dali/internal/event/events/tap-gesture/tap-gesture-recognizer.cpp +++ b/dali/internal/event/events/tap-gesture/tap-gesture-recognizer.cpp @@ -55,9 +55,7 @@ TapGestureRecognizer::TapGestureRecognizer( Observer& observer, Vector2 screenSi { } -TapGestureRecognizer::~TapGestureRecognizer() -{ -} +TapGestureRecognizer::~TapGestureRecognizer() = default; void TapGestureRecognizer::SendEvent(const Integration::TouchEvent& event) { diff --git a/dali/internal/event/events/wheel-event-processor.cpp b/dali/internal/event/events/wheel-event-processor.cpp index a5c93e8..216102c 100644 --- a/dali/internal/event/events/wheel-event-processor.cpp +++ b/dali/internal/event/events/wheel-event-processor.cpp @@ -128,9 +128,7 @@ WheelEventProcessor::WheelEventProcessor( Scene& scene ) { } -WheelEventProcessor::~WheelEventProcessor() -{ -} +WheelEventProcessor::~WheelEventProcessor() = default; void WheelEventProcessor::ProcessWheelEvent( const Integration::WheelEvent& event ) { diff --git a/dali/internal/event/render-tasks/render-task-defaults.h b/dali/internal/event/render-tasks/render-task-defaults.h index 8163f92..5d0d419 100644 --- a/dali/internal/event/render-tasks/render-task-defaults.h +++ b/dali/internal/event/render-tasks/render-task-defaults.h @@ -51,7 +51,7 @@ protected: /** * Virtual destructor */ - virtual ~RenderTaskDefaults(){} + virtual ~RenderTaskDefaults() = default; }; } // namespace Internal diff --git a/dali/internal/event/size-negotiation/memory-pool-relayout-container.cpp b/dali/internal/event/size-negotiation/memory-pool-relayout-container.cpp index e71af13..97df7e8 100644 --- a/dali/internal/event/size-negotiation/memory-pool-relayout-container.cpp +++ b/dali/internal/event/size-negotiation/memory-pool-relayout-container.cpp @@ -29,9 +29,7 @@ MemoryPoolRelayoutContainer::MemoryPoolRelayoutContainer( MemoryPoolObjectAlloca { } -MemoryPoolRelayoutContainer::~MemoryPoolRelayoutContainer() -{ -} +MemoryPoolRelayoutContainer::~MemoryPoolRelayoutContainer() = default; bool MemoryPoolRelayoutContainer::Contains( const Dali::Actor& actor ) { diff --git a/dali/internal/render/common/render-instruction-container.cpp b/dali/internal/render/common/render-instruction-container.cpp index 4389f2f..d2b08af 100644 --- a/dali/internal/render/common/render-instruction-container.cpp +++ b/dali/internal/render/common/render-instruction-container.cpp @@ -35,9 +35,7 @@ RenderInstructionContainer::RenderInstructionContainer() { } -RenderInstructionContainer::~RenderInstructionContainer() -{ -} +RenderInstructionContainer::~RenderInstructionContainer() = default; void RenderInstructionContainer::ResetAndReserve( BufferIndex bufferIndex, uint32_t capacityRequired ) { diff --git a/dali/internal/render/common/render-item.cpp b/dali/internal/render/common/render-item.cpp index d0daa83..5492878 100755 --- a/dali/internal/render/common/render-item.cpp +++ b/dali/internal/render/common/render-item.cpp @@ -56,10 +56,7 @@ RenderItem::RenderItem() { } -RenderItem::~RenderItem() -{ -} - +RenderItem::~RenderItem() = default; ClippingBox RenderItem::CalculateViewportSpaceAABB( const Vector3& size, const int viewportWidth, const int viewportHeight ) const { diff --git a/dali/internal/render/data-providers/node-data-provider.h b/dali/internal/render/data-providers/node-data-provider.h index 9603a77..0f768a3 100644 --- a/dali/internal/render/data-providers/node-data-provider.h +++ b/dali/internal/render/data-providers/node-data-provider.h @@ -40,7 +40,7 @@ public: /** * Constructor. Nothing to do as a pure interface. */ - NodeDataProvider() { } + NodeDataProvider() = default; /** * @param bufferIndex to use @@ -68,7 +68,7 @@ protected: /** * Virtual destructor, this is an interface, no deletion through this interface */ - ~NodeDataProvider() override { } + ~NodeDataProvider() override = default; }; } // SceneGraph diff --git a/dali/internal/render/data-providers/render-data-provider.cpp b/dali/internal/render/data-providers/render-data-provider.cpp index 004044b..eb75345 100644 --- a/dali/internal/render/data-providers/render-data-provider.cpp +++ b/dali/internal/render/data-providers/render-data-provider.cpp @@ -31,9 +31,7 @@ RenderDataProvider::RenderDataProvider( AnimatableProperty< float >& opacity ) { } -RenderDataProvider::~RenderDataProvider() -{ -} +RenderDataProvider::~RenderDataProvider() = default; void RenderDataProvider::SetUniformMap(const UniformMapDataProvider& uniformMapDataProvider) { diff --git a/dali/internal/render/data-providers/uniform-map-data-provider.h b/dali/internal/render/data-providers/uniform-map-data-provider.h index 158bf3f..9160908 100644 --- a/dali/internal/render/data-providers/uniform-map-data-provider.h +++ b/dali/internal/render/data-providers/uniform-map-data-provider.h @@ -39,9 +39,7 @@ public: /** * Constructor */ - UniformMapDataProvider() - { - } + UniformMapDataProvider() = default; /** * Return true if the uniform map has been changed this frame @@ -66,9 +64,7 @@ protected: /** * No deletion through this interface */ - virtual ~UniformMapDataProvider() - { - } + virtual ~UniformMapDataProvider() = default; }; } // namespace SceneGraph diff --git a/dali/internal/render/gl-resources/context.cpp b/dali/internal/render/gl-resources/context.cpp index 0cdc6f0..f92d0d0 100644 --- a/dali/internal/render/gl-resources/context.cpp +++ b/dali/internal/render/gl-resources/context.cpp @@ -111,9 +111,7 @@ Context::Context( Integration::GlAbstraction& glAbstraction, OwnerContainer< Con { } -Context::~Context() -{ -} +Context::~Context() = default; void Context::GlContextCreated() { diff --git a/dali/internal/render/gl-resources/frame-buffer-state-cache.cpp b/dali/internal/render/gl-resources/frame-buffer-state-cache.cpp index e9d3271..576475a 100644 --- a/dali/internal/render/gl-resources/frame-buffer-state-cache.cpp +++ b/dali/internal/render/gl-resources/frame-buffer-state-cache.cpp @@ -40,9 +40,7 @@ FrameBufferStateCache::FrameBufferStateCache() { } -FrameBufferStateCache::~FrameBufferStateCache() -{ -} +FrameBufferStateCache::~FrameBufferStateCache() = default; GLbitfield FrameBufferStateCache::GetClearMask( GLbitfield mask, bool forceClear, bool scissorTestEnabled ) { diff --git a/dali/internal/render/gl-resources/gl-resource-owner.h b/dali/internal/render/gl-resources/gl-resource-owner.h index a0642ee..f1c684b 100644 --- a/dali/internal/render/gl-resources/gl-resource-owner.h +++ b/dali/internal/render/gl-resources/gl-resource-owner.h @@ -35,8 +35,7 @@ public: /** * Virtual destructor. */ - virtual ~GlResourceOwner() - { } + virtual ~GlResourceOwner() = default; /** * Reset all GL resources. diff --git a/dali/internal/render/renderers/render-frame-buffer.cpp b/dali/internal/render/renderers/render-frame-buffer.cpp index cdd5c2e..8210648 100644 --- a/dali/internal/render/renderers/render-frame-buffer.cpp +++ b/dali/internal/render/renderers/render-frame-buffer.cpp @@ -52,9 +52,7 @@ FrameBuffer::FrameBuffer( uint32_t width, uint32_t height, Mask attachments ) { } -FrameBuffer::~FrameBuffer() -{ -} +FrameBuffer::~FrameBuffer() = default; void FrameBuffer::Destroy( Context& context ) { diff --git a/dali/internal/render/renderers/render-geometry.cpp b/dali/internal/render/renderers/render-geometry.cpp index a24712a..d3a2809 100644 --- a/dali/internal/render/renderers/render-geometry.cpp +++ b/dali/internal/render/renderers/render-geometry.cpp @@ -41,9 +41,7 @@ Geometry::Geometry() { } -Geometry::~Geometry() -{ -} +Geometry::~Geometry() = default; void Geometry::GlContextCreated( Context& context ) { diff --git a/dali/internal/render/renderers/render-renderer.cpp b/dali/internal/render/renderers/render-renderer.cpp index bce1343..2c82094 100644 --- a/dali/internal/render/renderers/render-renderer.cpp +++ b/dali/internal/render/renderers/render-renderer.cpp @@ -165,9 +165,7 @@ void Renderer::Initialize( Context& context ) mContext = &context; } -Renderer::~Renderer() -{ -} +Renderer::~Renderer() = default; void Renderer::SetGeometry( Render::Geometry* geometry ) { diff --git a/dali/internal/render/renderers/render-sampler.h b/dali/internal/render/renderers/render-sampler.h index c042995..1adf2f9 100644 --- a/dali/internal/render/renderers/render-sampler.h +++ b/dali/internal/render/renderers/render-sampler.h @@ -46,8 +46,7 @@ struct Sampler /** * Destructor */ - ~Sampler() - {} + ~Sampler() = default; bool operator==(const Sampler& rhs) const { diff --git a/dali/internal/render/renderers/render-texture.cpp b/dali/internal/render/renderers/render-texture.cpp index 73b73e2..f77ddb6 100644 --- a/dali/internal/render/renderers/render-texture.cpp +++ b/dali/internal/render/renderers/render-texture.cpp @@ -697,8 +697,7 @@ Texture::Texture( NativeImageInterfacePtr nativeImageInterface ) { } -Texture::~Texture() -{} +Texture::~Texture() = default; void Texture::Destroy( Context& context ) { diff --git a/dali/internal/render/renderers/render-vertex-buffer.cpp b/dali/internal/render/renderers/render-vertex-buffer.cpp index cfec857..385b7b8 100644 --- a/dali/internal/render/renderers/render-vertex-buffer.cpp +++ b/dali/internal/render/renderers/render-vertex-buffer.cpp @@ -125,9 +125,7 @@ VertexBuffer::VertexBuffer() { } -VertexBuffer::~VertexBuffer() -{ -} +VertexBuffer::~VertexBuffer() = default; void VertexBuffer::SetFormat( VertexBuffer::Format* format ) { diff --git a/dali/internal/render/shaders/program-cache.h b/dali/internal/render/shaders/program-cache.h index 6d91e34..42d31b6 100644 --- a/dali/internal/render/shaders/program-cache.h +++ b/dali/internal/render/shaders/program-cache.h @@ -40,14 +40,12 @@ public: /** * Constructor */ - ProgramCache() - { } + ProgramCache() = default; /** * Destructor, virtual as this is an interface */ - virtual ~ProgramCache() - { } + virtual ~ProgramCache() = default; public: // API diff --git a/dali/internal/render/shaders/program-controller.cpp b/dali/internal/render/shaders/program-controller.cpp index 1245787..1452564 100644 --- a/dali/internal/render/shaders/program-controller.cpp +++ b/dali/internal/render/shaders/program-controller.cpp @@ -41,9 +41,7 @@ ProgramController::ProgramController( Integration::GlAbstraction& glAbstraction mProgramCache.Reserve( 32 ); } -ProgramController::~ProgramController() -{ -} +ProgramController::~ProgramController() = default; void ProgramController::ResetProgramMatrices() { diff --git a/dali/internal/update/animation/property-accessor.h b/dali/internal/update/animation/property-accessor.h index e512628..813dacf 100644 --- a/dali/internal/update/animation/property-accessor.h +++ b/dali/internal/update/animation/property-accessor.h @@ -50,9 +50,7 @@ public: /** * Non-virtual destructor; PropertyAccessor is not suitable as a base class. */ - ~PropertyAccessor() - { - } + ~PropertyAccessor() = default; /** * Query whether the accessor is set. @@ -142,9 +140,7 @@ public: /** * Non-virtual destructor; PropertyAccessor is not suitable as a base class. */ - ~TransformManagerPropertyAccessor() - { - } + ~TransformManagerPropertyAccessor() = default; /** * Query whether the accessor is set. @@ -235,9 +231,7 @@ public: /** * Non-virtual destructor; PropertyAccessor is not suitable as a base class. */ - ~TransformManagerPropertyComponentAccessor() - { - } + ~TransformManagerPropertyComponentAccessor() = default; /** * Query whether the accessor is set. diff --git a/dali/internal/update/animation/property-component-accessor.h b/dali/internal/update/animation/property-component-accessor.h index 180dda3..a8604fc 100644 --- a/dali/internal/update/animation/property-component-accessor.h +++ b/dali/internal/update/animation/property-component-accessor.h @@ -49,9 +49,7 @@ public: /** * Non-virtual destructor; PropertyComponentAccessorX is not suitable as a base class. */ - ~PropertyComponentAccessorX() - { - } + ~PropertyComponentAccessorX() = default; /** * Query whether the accessor is set. @@ -141,9 +139,7 @@ public: /** * Non-virtual destructor; PropertyComponentAccessorY is not suitable as a base class. */ - ~PropertyComponentAccessorY() - { - } + ~PropertyComponentAccessorY() = default; /** * Query whether the accessor is set. @@ -232,9 +228,7 @@ public: /** * Non-virtual destructor; PropertyComponentAccessorZ is not suitable as a base class. */ - ~PropertyComponentAccessorZ() - { - } + ~PropertyComponentAccessorZ() = default; /** * Query whether the accessor is set. @@ -323,9 +317,7 @@ public: /** * Non-virtual destructor; PropertyComponentAccessorW is not suitable as a base class. */ - ~PropertyComponentAccessorW() - { - } + ~PropertyComponentAccessorW() = default; /** * Query whether the accessor is set. diff --git a/dali/internal/update/animation/scene-graph-animation.cpp b/dali/internal/update/animation/scene-graph-animation.cpp index f0d961d..3a95d54 100644 --- a/dali/internal/update/animation/scene-graph-animation.cpp +++ b/dali/internal/update/animation/scene-graph-animation.cpp @@ -82,9 +82,7 @@ Animation::Animation( float durationSeconds, float speedFactor, const Vector2& p { } -Animation::~Animation() -{ -} +Animation::~Animation() = default; void Animation::operator delete( void* ptr ) { diff --git a/dali/internal/update/animation/scene-graph-animator.h b/dali/internal/update/animation/scene-graph-animator.h index 120aa24..56ed6c4 100644 --- a/dali/internal/update/animation/scene-graph-animator.h +++ b/dali/internal/update/animation/scene-graph-animator.h @@ -55,12 +55,12 @@ struct AnimatorFunctionBase /** * Constructor */ - AnimatorFunctionBase() {} + AnimatorFunctionBase() = default; /* * Virtual destructor (Intended as base class) */ - virtual ~AnimatorFunctionBase() {} + virtual ~AnimatorFunctionBase() = default; ///Stub "()" operators. virtual bool operator()(float progress, const bool& property) @@ -610,9 +610,7 @@ public: /** * Virtual destructor. */ - ~Animator() override - { - } + ~Animator() override = default; /** * @copydoc AnimatorBase::DoUpdate( BufferIndex bufferIndex, bool bake, float alpha ) @@ -699,9 +697,7 @@ public: /** * Virtual destructor. */ - ~AnimatorTransformProperty() override - { - } + ~AnimatorTransformProperty() override = default; /** * @copydoc AnimatorBase::DoUpdate( BufferIndex bufferIndex, bool bake, float alpha ) diff --git a/dali/internal/update/animation/scene-graph-constraint.h b/dali/internal/update/animation/scene-graph-constraint.h index ef32672..4015114 100644 --- a/dali/internal/update/animation/scene-graph-constraint.h +++ b/dali/internal/update/animation/scene-graph-constraint.h @@ -72,9 +72,7 @@ public: /** * Virtual destructor. */ - ~Constraint() override - { - } + ~Constraint() override = default; /** * @copydoc Dali::Internal::SceneGraph::ConstraintBase::Apply() diff --git a/dali/internal/update/common/animatable-property.h b/dali/internal/update/common/animatable-property.h index a586a0d..35daa3e 100644 --- a/dali/internal/update/common/animatable-property.h +++ b/dali/internal/update/common/animatable-property.h @@ -77,8 +77,7 @@ public: /** * Virtual destructor. */ - ~AnimatablePropertyBase() override - {} + ~AnimatablePropertyBase() override = default; protected: // for derived classes @@ -144,9 +143,7 @@ public: /** * Virtual destructor. */ - ~AnimatableProperty() override - { - } + ~AnimatableProperty() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -317,9 +314,7 @@ public: /** * Virtual destructor. */ - ~AnimatableProperty() override - { - } + ~AnimatableProperty() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -498,9 +493,7 @@ public: /** * Virtual destructor. */ - ~AnimatableProperty() override - { - } + ~AnimatableProperty() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -680,9 +673,7 @@ public: /** * Virtual destructor. */ - ~AnimatableProperty() override - { - } + ~AnimatableProperty() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -952,9 +943,7 @@ public: /** * Virtual destructor. */ - ~AnimatableProperty() override - { - } + ~AnimatableProperty() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -1278,9 +1267,7 @@ public: /** * Virtual destructor. */ - ~AnimatableProperty() override - { - } + ~AnimatableProperty() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -1663,9 +1650,7 @@ public: /** * Virtual destructor. */ - ~AnimatableProperty() override - { - } + ~AnimatableProperty() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -1822,9 +1807,7 @@ public: /** * Virtual destructor. */ - ~AnimatableProperty() override - { - } + ~AnimatableProperty() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -1985,9 +1968,7 @@ public: /** * Virtual destructor. */ - ~AnimatableProperty() override - { - } + ~AnimatableProperty() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() diff --git a/dali/internal/update/common/discard-queue.cpp b/dali/internal/update/common/discard-queue.cpp index 855f7b1..2131cbd 100644 --- a/dali/internal/update/common/discard-queue.cpp +++ b/dali/internal/update/common/discard-queue.cpp @@ -47,9 +47,7 @@ DiscardQueue::DiscardQueue( RenderQueue& renderQueue ) { } -DiscardQueue::~DiscardQueue() -{ -} +DiscardQueue::~DiscardQueue() = default; void DiscardQueue::Add( BufferIndex updateBufferIndex, Node* node ) { diff --git a/dali/internal/update/common/inherited-property.h b/dali/internal/update/common/inherited-property.h index 4cd573e..dc3559f 100644 --- a/dali/internal/update/common/inherited-property.h +++ b/dali/internal/update/common/inherited-property.h @@ -68,9 +68,7 @@ public: /** * Virtual destructor. */ - ~InheritedVector3() override - { - } + ~InheritedVector3() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -219,9 +217,7 @@ public: /** * Virtual destructor. */ - ~InheritedColor() override - { - } + ~InheritedColor() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -388,9 +384,7 @@ public: /** * Virtual destructor. */ - ~InheritedQuaternion() override - { - } + ~InheritedQuaternion() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -538,9 +532,7 @@ public: /** * Virtual destructor. */ - ~InheritedMatrix() override - { - } + ~InheritedMatrix() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() diff --git a/dali/internal/update/common/property-base.cpp b/dali/internal/update/common/property-base.cpp index 18504e0..23abd3e 100644 --- a/dali/internal/update/common/property-base.cpp +++ b/dali/internal/update/common/property-base.cpp @@ -26,14 +26,9 @@ namespace Internal namespace SceneGraph { +PropertyBase::PropertyBase() = default; -PropertyBase::PropertyBase() -{ -} - -PropertyBase::~PropertyBase() -{ -} +PropertyBase::~PropertyBase() = default; } // namespace SceneGraph diff --git a/dali/internal/update/common/property-owner-messages.cpp b/dali/internal/update/common/property-owner-messages.cpp index 9cc7014..85e3b05 100644 --- a/dali/internal/update/common/property-owner-messages.cpp +++ b/dali/internal/update/common/property-owner-messages.cpp @@ -29,13 +29,9 @@ namespace SceneGraph // Messages for a property owner -PropertyOwnerMessageBase::PropertyOwnerMessageBase() -{ -} +PropertyOwnerMessageBase::PropertyOwnerMessageBase() = default; -PropertyOwnerMessageBase::~PropertyOwnerMessageBase() -{ -} +PropertyOwnerMessageBase::~PropertyOwnerMessageBase() = default; } // namespace SceneGraph diff --git a/dali/internal/update/common/property-owner-messages.h b/dali/internal/update/common/property-owner-messages.h index 8af4362..db5759d 100644 --- a/dali/internal/update/common/property-owner-messages.h +++ b/dali/internal/update/common/property-owner-messages.h @@ -98,9 +98,7 @@ public: /** * Virtual destructor */ - ~AnimatablePropertyMessage() override - { - } + ~AnimatablePropertyMessage() override = default; /** * @copydoc MessageBase::Process @@ -176,9 +174,7 @@ public: /** * Virtual destructor */ - ~AnimatablePropertyComponentMessage() override - { - } + ~AnimatablePropertyComponentMessage() override = default; /** * @copydoc MessageBase::Process diff --git a/dali/internal/update/common/property-owner.h b/dali/internal/update/common/property-owner.h index 5fbfc5a..d8f3330 100644 --- a/dali/internal/update/common/property-owner.h +++ b/dali/internal/update/common/property-owner.h @@ -80,8 +80,7 @@ public: /** * Virtual destructor, no deletion through this interface */ - virtual ~Observer() {} - + virtual ~Observer() = default; }; /** diff --git a/dali/internal/update/common/scene-graph-buffers.cpp b/dali/internal/update/common/scene-graph-buffers.cpp index c6e6161..a4194a1 100644 --- a/dali/internal/update/common/scene-graph-buffers.cpp +++ b/dali/internal/update/common/scene-graph-buffers.cpp @@ -36,9 +36,7 @@ SceneGraphBuffers::SceneGraphBuffers() { } -SceneGraphBuffers::~SceneGraphBuffers() -{ -} +SceneGraphBuffers::~SceneGraphBuffers() = default; void SceneGraphBuffers::Swap() { diff --git a/dali/internal/update/common/scene-graph-connection-change-propagator.cpp b/dali/internal/update/common/scene-graph-connection-change-propagator.cpp index 73a3c2e..b97e2e0 100644 --- a/dali/internal/update/common/scene-graph-connection-change-propagator.cpp +++ b/dali/internal/update/common/scene-graph-connection-change-propagator.cpp @@ -22,14 +22,9 @@ namespace Internal { namespace SceneGraph { +ConnectionChangePropagator::ConnectionChangePropagator() = default; -ConnectionChangePropagator::ConnectionChangePropagator() -{ -} - -ConnectionChangePropagator::~ConnectionChangePropagator() -{ -} +ConnectionChangePropagator::~ConnectionChangePropagator() = default; void ConnectionChangePropagator::Add(Observer& observer) { diff --git a/dali/internal/update/common/scene-graph-connection-change-propagator.h b/dali/internal/update/common/scene-graph-connection-change-propagator.h index 72f520e..3621541 100644 --- a/dali/internal/update/common/scene-graph-connection-change-propagator.h +++ b/dali/internal/update/common/scene-graph-connection-change-propagator.h @@ -59,8 +59,7 @@ public: /** * Virtual destructor, no deletion through this interface */ - virtual ~Observer() {} - + virtual ~Observer() = default; }; /** diff --git a/dali/internal/update/common/scene-graph-property-notification.cpp b/dali/internal/update/common/scene-graph-property-notification.cpp index ecc6ab9..c3e5fd9 100644 --- a/dali/internal/update/common/scene-graph-property-notification.cpp +++ b/dali/internal/update/common/scene-graph-property-notification.cpp @@ -122,9 +122,7 @@ PropertyNotification::PropertyNotification(Object& object, } } -PropertyNotification::~PropertyNotification() -{ -} +PropertyNotification::~PropertyNotification() = default; bool PropertyNotification::EvalFalse( const Dali::PropertyInput& value, RawArgumentContainer& arg ) { diff --git a/dali/internal/update/common/uniform-map.cpp b/dali/internal/update/common/uniform-map.cpp index 5045c2e..c68ac13 100644 --- a/dali/internal/update/common/uniform-map.cpp +++ b/dali/internal/update/common/uniform-map.cpp @@ -23,10 +23,7 @@ namespace Internal { namespace SceneGraph { - -UniformMap::UniformMap() -{ -} +UniformMap::UniformMap() = default; UniformMap::~UniformMap() { diff --git a/dali/internal/update/common/uniform-map.h b/dali/internal/update/common/uniform-map.h index b3afaa2..2df39e2 100644 --- a/dali/internal/update/common/uniform-map.h +++ b/dali/internal/update/common/uniform-map.h @@ -92,7 +92,7 @@ public: /** * Virtual destructor, no deletion through this interface */ - virtual ~Observer() {} + virtual ~Observer() = default; }; /** diff --git a/dali/internal/update/controllers/render-message-dispatcher.cpp b/dali/internal/update/controllers/render-message-dispatcher.cpp index 19d02c9..466697c 100644 --- a/dali/internal/update/controllers/render-message-dispatcher.cpp +++ b/dali/internal/update/controllers/render-message-dispatcher.cpp @@ -40,9 +40,7 @@ RenderMessageDispatcher::RenderMessageDispatcher( RenderManager& renderManager, { } -RenderMessageDispatcher::~RenderMessageDispatcher() -{ -} +RenderMessageDispatcher::~RenderMessageDispatcher() = default; void RenderMessageDispatcher::AddRenderer( OwnerPointer< Render::Renderer >& renderer ) { diff --git a/dali/internal/update/controllers/scene-controller-impl.cpp b/dali/internal/update/controllers/scene-controller-impl.cpp index 718f966..ee528e8 100644 --- a/dali/internal/update/controllers/scene-controller-impl.cpp +++ b/dali/internal/update/controllers/scene-controller-impl.cpp @@ -38,9 +38,7 @@ SceneControllerImpl::SceneControllerImpl( RenderMessageDispatcher& renderMessage { } -SceneControllerImpl::~SceneControllerImpl() -{ -} +SceneControllerImpl::~SceneControllerImpl() = default; } // namespace SceneGraph diff --git a/dali/internal/update/controllers/scene-controller.h b/dali/internal/update/controllers/scene-controller.h index a30bb49..5eb5aea 100644 --- a/dali/internal/update/controllers/scene-controller.h +++ b/dali/internal/update/controllers/scene-controller.h @@ -41,16 +41,12 @@ public: /** * Constructor */ - SceneController() - { - } + SceneController() = default; /** * Destructor */ - virtual ~SceneController() - { - } + virtual ~SceneController() = default; /** * Return the render message dispatcher diff --git a/dali/internal/update/gestures/gesture-properties.h b/dali/internal/update/gestures/gesture-properties.h index c1f73b3..41eb695 100644 --- a/dali/internal/update/gestures/gesture-properties.h +++ b/dali/internal/update/gestures/gesture-properties.h @@ -62,9 +62,7 @@ public: /** * Virtual destructor. */ - ~GestureProperty() override - { - } + ~GestureProperty() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -151,9 +149,7 @@ public: /** * Virtual destructor. */ - ~GesturePropertyVector2() override - { - } + ~GesturePropertyVector2() override = default; /** * @copydoc Dali::PropertyInput::GetVector2() @@ -174,9 +170,7 @@ public: /** * Virtual destructor. */ - ~GesturePropertyBool() override - { - } + ~GesturePropertyBool() override = default; /** * @copydoc Dali::PropertyInput::GetBoolean() diff --git a/dali/internal/update/gestures/scene-graph-pan-gesture.h b/dali/internal/update/gestures/scene-graph-pan-gesture.h index 017a5de..8386102 100644 --- a/dali/internal/update/gestures/scene-graph-pan-gesture.h +++ b/dali/internal/update/gestures/scene-graph-pan-gesture.h @@ -77,19 +77,12 @@ public: */ struct Info { - Info() - { - } + Info() = default; /** * Copy constructor */ - Info( const Info& rhs ) - : velocity( rhs.velocity ), - displacement( rhs.displacement ), - position( rhs.position ) - { - } + Info(const Info& rhs) = default; /** * Assignment operator diff --git a/dali/internal/update/manager/frame-callback-processor.cpp b/dali/internal/update/manager/frame-callback-processor.cpp index 5c713f2..ca36566 100644 --- a/dali/internal/update/manager/frame-callback-processor.cpp +++ b/dali/internal/update/manager/frame-callback-processor.cpp @@ -42,9 +42,7 @@ FrameCallbackProcessor::FrameCallbackProcessor( UpdateManager& updateManager, Tr { } -FrameCallbackProcessor::~FrameCallbackProcessor() -{ -} +FrameCallbackProcessor::~FrameCallbackProcessor() = default; void FrameCallbackProcessor::AddFrameCallback( OwnerPointer< FrameCallback >& frameCallback, const Node* rootNode ) { diff --git a/dali/internal/update/manager/free-list.h b/dali/internal/update/manager/free-list.h index 2072912..fb6cb56 100644 --- a/dali/internal/update/manager/free-list.h +++ b/dali/internal/update/manager/free-list.h @@ -49,8 +49,7 @@ struct FreeList /** * Destructor */ - ~FreeList() - {} + ~FreeList() = default; /** * Adds a new item to the list. If there is no more space in the vector it will diff --git a/dali/internal/update/manager/render-instruction-processor.cpp b/dali/internal/update/manager/render-instruction-processor.cpp index 4d1b55d..057e66e 100644 --- a/dali/internal/update/manager/render-instruction-processor.cpp +++ b/dali/internal/update/manager/render-instruction-processor.cpp @@ -351,9 +351,7 @@ RenderInstructionProcessor::RenderInstructionProcessor() mSortComparitors.PushBack( CompareItems3DWithClipping ); } -RenderInstructionProcessor::~RenderInstructionProcessor() -{ -} +RenderInstructionProcessor::~RenderInstructionProcessor() = default; inline void RenderInstructionProcessor::SortRenderItems( BufferIndex bufferIndex, RenderList& renderList, Layer& layer, bool respectClippingOrder ) { diff --git a/dali/internal/update/manager/render-task-processor.cpp b/dali/internal/update/manager/render-task-processor.cpp index 73ea5cf..0079c2c 100644 --- a/dali/internal/update/manager/render-task-processor.cpp +++ b/dali/internal/update/manager/render-task-processor.cpp @@ -308,13 +308,9 @@ bool ProcessTasks( BufferIndex updateBufferIndex, } // Anonymous namespace. -RenderTaskProcessor::RenderTaskProcessor() -{ -} +RenderTaskProcessor::RenderTaskProcessor() = default; -RenderTaskProcessor::~RenderTaskProcessor() -{ -} +RenderTaskProcessor::~RenderTaskProcessor() = default; bool RenderTaskProcessor::Process( BufferIndex updateBufferIndex, RenderTaskList& renderTasks, diff --git a/dali/internal/update/manager/transform-manager-property.h b/dali/internal/update/manager/transform-manager-property.h index fc1583b..e2874d3 100644 --- a/dali/internal/update/manager/transform-manager-property.h +++ b/dali/internal/update/manager/transform-manager-property.h @@ -311,9 +311,7 @@ public: /** * Virtual destructor. */ - ~TransformManagerVector3Input() override - { - } + ~TransformManagerVector3Input() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -473,9 +471,7 @@ public: /** * Virtual destructor. */ - ~TransformManagerQuaternionInput() override - { - } + ~TransformManagerQuaternionInput() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() @@ -624,9 +620,7 @@ public: /** * Virtual destructor. */ - ~TransformManagerMatrixInput() override - { - } + ~TransformManagerMatrixInput() override = default; /** * @copydoc Dali::Internal::SceneGraph::PropertyBase::GetType() diff --git a/dali/internal/update/manager/transform-manager.cpp b/dali/internal/update/manager/transform-manager.cpp index c2cc4bb..a51b0d7 100644 --- a/dali/internal/update/manager/transform-manager.cpp +++ b/dali/internal/update/manager/transform-manager.cpp @@ -82,8 +82,7 @@ TransformManager::TransformManager() mReorder(false) {} -TransformManager::~TransformManager() -{} +TransformManager::~TransformManager() = default; TransformId TransformManager::CreateTransform() { diff --git a/dali/internal/update/manager/update-manager.h b/dali/internal/update/manager/update-manager.h index bf5d3e4..73e0f38 100644 --- a/dali/internal/update/manager/update-manager.h +++ b/dali/internal/update/manager/update-manager.h @@ -98,9 +98,7 @@ struct NodeDepthPair struct NodeDepths { - NodeDepths() - { - } + NodeDepths() = default; void Add( SceneGraph::Node* node, uint32_t sortedDepth ) { @@ -1328,9 +1326,7 @@ public: /** * Virtual destructor */ - ~IndexBufferMessage() override - { - } + ~IndexBufferMessage() override = default; /** * @copydoc MessageBase::Process diff --git a/dali/internal/update/manager/update-proxy-impl.cpp b/dali/internal/update/manager/update-proxy-impl.cpp index 11a5385..297391b 100644 --- a/dali/internal/update/manager/update-proxy-impl.cpp +++ b/dali/internal/update/manager/update-proxy-impl.cpp @@ -66,9 +66,7 @@ UpdateProxy::UpdateProxy( SceneGraph::UpdateManager& updateManager, SceneGraph:: { } -UpdateProxy::~UpdateProxy() -{ -} +UpdateProxy::~UpdateProxy() = default; bool UpdateProxy::GetPosition( uint32_t id, Vector3& position ) const { diff --git a/dali/internal/update/nodes/node-messages.cpp b/dali/internal/update/nodes/node-messages.cpp index edac935..2b6a666 100644 --- a/dali/internal/update/nodes/node-messages.cpp +++ b/dali/internal/update/nodes/node-messages.cpp @@ -35,9 +35,7 @@ NodePropertyMessageBase::NodePropertyMessageBase(UpdateManager& updateManager) { } -NodePropertyMessageBase::~NodePropertyMessageBase() -{ -} +NodePropertyMessageBase::~NodePropertyMessageBase() = default; } // namespace SceneGraph diff --git a/dali/internal/update/nodes/node-messages.h b/dali/internal/update/nodes/node-messages.h index c7da093..0fc422f 100644 --- a/dali/internal/update/nodes/node-messages.h +++ b/dali/internal/update/nodes/node-messages.h @@ -95,9 +95,7 @@ public: /** * Virtual destructor */ - ~NodePropertyMessage() override - { - } + ~NodePropertyMessage() override = default; /** * @copydoc MessageBase::Process @@ -175,9 +173,7 @@ public: /** * Virtual destructor */ - ~NodePropertyComponentMessage() override - { - } + ~NodePropertyComponentMessage() override = default; /** * @copydoc MessageBase::Process @@ -253,9 +249,7 @@ public: /** * Virtual destructor */ - ~NodeTransformPropertyMessage() override - { - } + ~NodeTransformPropertyMessage() override = default; /** * @copydoc MessageBase::Process @@ -331,9 +325,7 @@ public: /** * Virtual destructor */ - ~NodeTransformComponentMessage() override - { - } + ~NodeTransformComponentMessage() override = default; /** * @copydoc MessageBase::Process diff --git a/dali/internal/update/nodes/scene-graph-layer.cpp b/dali/internal/update/nodes/scene-graph-layer.cpp old mode 100755 new mode 100644 index 0c3c641..14cdc54 --- a/dali/internal/update/nodes/scene-graph-layer.cpp +++ b/dali/internal/update/nodes/scene-graph-layer.cpp @@ -56,9 +56,7 @@ Layer::Layer() mAllChildTransformsClean[ 1 ] = false; } -Layer::~Layer() -{ -} +Layer::~Layer() = default; void Layer::SetSortFunction( Dali::Layer::SortFunctionType function ) { diff --git a/dali/internal/update/render-tasks/scene-graph-camera.cpp b/dali/internal/update/render-tasks/scene-graph-camera.cpp index 5a4a529..e644bb3 100644 --- a/dali/internal/update/render-tasks/scene-graph-camera.cpp +++ b/dali/internal/update/render-tasks/scene-graph-camera.cpp @@ -185,9 +185,7 @@ Camera* Camera::New() return new Camera(); } -Camera::~Camera() -{ -} +Camera::~Camera() = default; void Camera::SetNode( const Node* node ) { diff --git a/dali/internal/update/render-tasks/scene-graph-render-task-list.cpp b/dali/internal/update/render-tasks/scene-graph-render-task-list.cpp index 63d9118..eb495ba 100644 --- a/dali/internal/update/render-tasks/scene-graph-render-task-list.cpp +++ b/dali/internal/update/render-tasks/scene-graph-render-task-list.cpp @@ -49,9 +49,7 @@ RenderTaskList::RenderTaskList() { } -RenderTaskList::~RenderTaskList() -{ -} +RenderTaskList::~RenderTaskList() = default; void RenderTaskList::operator delete( void* ptr ) { diff --git a/dali/public-api/actors/actor.cpp b/dali/public-api/actors/actor.cpp index ee06114..0b455bd 100644 --- a/dali/public-api/actors/actor.cpp +++ b/dali/public-api/actors/actor.cpp @@ -33,9 +33,7 @@ namespace Dali { -Actor::Actor() -{ -} +Actor::Actor() = default; Actor Actor::New() { @@ -49,9 +47,7 @@ Actor Actor::DownCast(BaseHandle handle) return Actor(dynamic_cast(handle.GetObjectPtr())); } -Actor::~Actor() -{ -} +Actor::~Actor() = default; Actor::Actor(const Actor& copy) = default; diff --git a/dali/public-api/actors/camera-actor.cpp b/dali/public-api/actors/camera-actor.cpp index fab6bef..93c1cfd 100644 --- a/dali/public-api/actors/camera-actor.cpp +++ b/dali/public-api/actors/camera-actor.cpp @@ -47,18 +47,11 @@ CameraActor CameraActor::DownCast(BaseHandle handle) return CameraActor(dynamic_cast(handle.GetObjectPtr())); } -CameraActor::CameraActor() -{ -} +CameraActor::CameraActor() = default; -CameraActor::~CameraActor() -{ -} +CameraActor::~CameraActor() = default; -CameraActor::CameraActor(const CameraActor& copy) -: Actor(copy) -{ -} +CameraActor::CameraActor(const CameraActor& copy) = default; CameraActor& CameraActor::operator=(const CameraActor& rhs) { diff --git a/dali/public-api/actors/custom-actor-impl.cpp b/dali/public-api/actors/custom-actor-impl.cpp index cd36dbd..1ff533b 100644 --- a/dali/public-api/actors/custom-actor-impl.cpp +++ b/dali/public-api/actors/custom-actor-impl.cpp @@ -39,9 +39,7 @@ CustomActorImpl::CustomActorImpl(ActorFlags flags) { } -CustomActorImpl::~CustomActorImpl() -{ -} +CustomActorImpl::~CustomActorImpl() = default; void CustomActorImpl::Initialize(Internal::CustomActor& owner) { diff --git a/dali/public-api/actors/custom-actor.cpp b/dali/public-api/actors/custom-actor.cpp index 62de9b7..bceb7e1 100644 --- a/dali/public-api/actors/custom-actor.cpp +++ b/dali/public-api/actors/custom-actor.cpp @@ -38,18 +38,14 @@ TypeRegistration mType(typeid(Dali::CustomActor), typeid(Dali::Actor), Create); } // namespace -CustomActor::CustomActor() -{ -} +CustomActor::CustomActor() = default; CustomActor CustomActor::DownCast(BaseHandle handle) { return CustomActor(dynamic_cast(handle.GetObjectPtr())); } -CustomActor::~CustomActor() -{ -} +CustomActor::~CustomActor() = default; CustomActor::CustomActor(const CustomActor& copy) = default; diff --git a/dali/public-api/actors/layer.cpp b/dali/public-api/actors/layer.cpp index 3da3365..1f1be7c 100644 --- a/dali/public-api/actors/layer.cpp +++ b/dali/public-api/actors/layer.cpp @@ -25,9 +25,7 @@ namespace Dali { using Dali::Layer; -Layer::Layer() -{ -} +Layer::Layer() = default; Layer Layer::New() { @@ -41,9 +39,7 @@ Layer Layer::DownCast(BaseHandle handle) return Layer(dynamic_cast(handle.GetObjectPtr())); } -Layer::~Layer() -{ -} +Layer::~Layer() = default; Layer::Layer(const Layer& copy) = default; diff --git a/dali/public-api/animation/animation.cpp b/dali/public-api/animation/animation.cpp index 508280c..d1987c5 100644 --- a/dali/public-api/animation/animation.cpp +++ b/dali/public-api/animation/animation.cpp @@ -27,9 +27,7 @@ namespace Dali { -Animation::Animation() -{ -} +Animation::Animation() = default; Animation::Animation(Internal::Animation* animation) : BaseHandle(animation) @@ -48,9 +46,7 @@ Animation Animation::DownCast(BaseHandle handle) return Animation(dynamic_cast(handle.GetObjectPtr())); } -Animation::~Animation() -{ -} +Animation::~Animation() = default; Animation::Animation(const Animation& handle) = default; diff --git a/dali/public-api/animation/constraint.cpp b/dali/public-api/animation/constraint.cpp index 2622943..4175919 100644 --- a/dali/public-api/animation/constraint.cpp +++ b/dali/public-api/animation/constraint.cpp @@ -38,18 +38,14 @@ Internal::PropertyConstraint

* CreatePropertyConstraint(CallbackBase* func) const Constraint::RemoveAction Constraint::DEFAULT_REMOVE_ACTION = Constraint::BAKE; -Constraint::Constraint() -{ -} +Constraint::Constraint() = default; Constraint Constraint::Clone(Handle object) { return Constraint(GetImplementation(*this).Clone(GetImplementation(object))); } -Constraint::~Constraint() -{ -} +Constraint::~Constraint() = default; Constraint::Constraint(const Constraint& constraint) = default; diff --git a/dali/public-api/animation/constraints.h b/dali/public-api/animation/constraints.h index 63bcf0d..56571b7 100644 --- a/dali/public-api/animation/constraints.h +++ b/dali/public-api/animation/constraints.h @@ -47,9 +47,7 @@ struct EqualToConstraint * @brief Constructor. * @SINCE_1_0.0 */ - EqualToConstraint() - { - } + EqualToConstraint() = default; /** * @brief Overrides functor for float properties. diff --git a/dali/public-api/animation/key-frames.cpp b/dali/public-api/animation/key-frames.cpp index d2394dd..dbf21e1 100644 --- a/dali/public-api/animation/key-frames.cpp +++ b/dali/public-api/animation/key-frames.cpp @@ -37,13 +37,9 @@ KeyFrames KeyFrames::DownCast(BaseHandle handle) return KeyFrames(dynamic_cast(handle.GetObjectPtr())); } -KeyFrames::KeyFrames() -{ -} +KeyFrames::KeyFrames() = default; -KeyFrames::~KeyFrames() -{ -} +KeyFrames::~KeyFrames() = default; KeyFrames::KeyFrames(const KeyFrames& handle) = default; diff --git a/dali/public-api/animation/linear-constrainer.cpp b/dali/public-api/animation/linear-constrainer.cpp index 8a99504..3f147a4 100644 --- a/dali/public-api/animation/linear-constrainer.cpp +++ b/dali/public-api/animation/linear-constrainer.cpp @@ -34,13 +34,9 @@ LinearConstrainer LinearConstrainer::DownCast(BaseHandle handle) return LinearConstrainer(dynamic_cast(handle.GetObjectPtr())); } -LinearConstrainer::LinearConstrainer() -{ -} +LinearConstrainer::LinearConstrainer() = default; -LinearConstrainer::~LinearConstrainer() -{ -} +LinearConstrainer::~LinearConstrainer() = default; LinearConstrainer::LinearConstrainer(const LinearConstrainer& handle) = default; diff --git a/dali/public-api/animation/path.cpp b/dali/public-api/animation/path.cpp index f16b7ba..d5666a3 100644 --- a/dali/public-api/animation/path.cpp +++ b/dali/public-api/animation/path.cpp @@ -34,13 +34,9 @@ Path Path::DownCast(BaseHandle handle) return Path(dynamic_cast(handle.GetObjectPtr())); } -Path::Path() -{ -} +Path::Path() = default; -Path::~Path() -{ -} +Path::~Path() = default; Path::Path(const Path& handle) = default; diff --git a/dali/public-api/animation/time-period.cpp b/dali/public-api/animation/time-period.cpp index f8f5840..4646b22 100644 --- a/dali/public-api/animation/time-period.cpp +++ b/dali/public-api/animation/time-period.cpp @@ -32,8 +32,6 @@ TimePeriod::TimePeriod(float delay, float duration) { } -TimePeriod::~TimePeriod() -{ -} +TimePeriod::~TimePeriod() = default; } // namespace Dali diff --git a/dali/public-api/common/dali-vector.cpp b/dali/public-api/common/dali-vector.cpp index e12f4ab..4f153aa 100644 --- a/dali/public-api/common/dali-vector.cpp +++ b/dali/public-api/common/dali-vector.cpp @@ -28,9 +28,7 @@ VectorBase::VectorBase() { } -VectorBase::~VectorBase() -{ -} +VectorBase::~VectorBase() = default; VectorBase::SizeType VectorBase::Capacity() const { diff --git a/dali/public-api/common/dali-vector.h b/dali/public-api/common/dali-vector.h index 5a61b64..8564cec 100644 --- a/dali/public-api/common/dali-vector.h +++ b/dali/public-api/common/dali-vector.h @@ -234,17 +234,13 @@ protected: // API for deriving classes * @brief Empty constructor. * @SINCE_1_0.0 */ - VectorAlgorithms() - { - } + VectorAlgorithms() = default; /** * @brief Empty destructor. * @SINCE_1_0.0 */ - ~VectorAlgorithms() - { - } + ~VectorAlgorithms() = default; /** * @brief Copy vector contents. @@ -392,12 +388,8 @@ template<> class VectorAlgorithms : public VectorBase { private: - VectorAlgorithms() - { - } - ~VectorAlgorithms() - { - } + VectorAlgorithms() = default; + ~VectorAlgorithms() = default; }; /// @endcond @@ -433,9 +425,7 @@ public: // API * @brief Default constructor. Does not allocate any space. * @SINCE_1_0.0 */ - Vector() - { - } + Vector() = default; /** * @brief Destructor. Releases the allocated space. diff --git a/dali/public-api/events/gesture-detector.cpp b/dali/public-api/events/gesture-detector.cpp index 36a838a..63b3fd1 100644 --- a/dali/public-api/events/gesture-detector.cpp +++ b/dali/public-api/events/gesture-detector.cpp @@ -28,23 +28,16 @@ GestureDetector::GestureDetector(Internal::GestureDetector* internal) { } -GestureDetector::GestureDetector() -{ -} +GestureDetector::GestureDetector() = default; GestureDetector GestureDetector::DownCast(BaseHandle handle) { return GestureDetector(dynamic_cast(handle.GetObjectPtr())); } -GestureDetector::~GestureDetector() -{ -} +GestureDetector::~GestureDetector() = default; -GestureDetector::GestureDetector(const GestureDetector& handle) -: Handle(handle) -{ -} +GestureDetector::GestureDetector(const GestureDetector& handle) = default; GestureDetector& GestureDetector::operator=(const GestureDetector& rhs) { diff --git a/dali/public-api/events/gesture.cpp b/dali/public-api/events/gesture.cpp index be6badd..20c1ca4 100644 --- a/dali/public-api/events/gesture.cpp +++ b/dali/public-api/events/gesture.cpp @@ -23,9 +23,7 @@ namespace Dali { -Gesture::Gesture() -{ -} +Gesture::Gesture() = default; Gesture::Gesture(Internal::Gesture* internal) : BaseHandle(internal) @@ -40,9 +38,7 @@ Gesture& Gesture::operator=(const Gesture& rhs) = default; Gesture& Gesture::operator=(Gesture&& rhs) = default; -Gesture::~Gesture() -{ -} +Gesture::~Gesture() = default; GestureType::Value Gesture::GetType() const { diff --git a/dali/public-api/events/hover-event.cpp b/dali/public-api/events/hover-event.cpp index 21968dc..754db44 100644 --- a/dali/public-api/events/hover-event.cpp +++ b/dali/public-api/events/hover-event.cpp @@ -33,9 +33,7 @@ HoverEvent::HoverEvent(const HoverEvent& rhs) = default; HoverEvent::HoverEvent(HoverEvent&& rhs) = default; -HoverEvent::~HoverEvent() -{ -} +HoverEvent::~HoverEvent() = default; HoverEvent& HoverEvent::operator=(const HoverEvent& rhs) = default; diff --git a/dali/public-api/events/key-event.cpp b/dali/public-api/events/key-event.cpp index 7235d4d..fe6bfcf 100644 --- a/dali/public-api/events/key-event.cpp +++ b/dali/public-api/events/key-event.cpp @@ -32,9 +32,7 @@ KeyEvent::KeyEvent(const KeyEvent& rhs) = default; KeyEvent::KeyEvent(KeyEvent&& rhs) = default; -KeyEvent::~KeyEvent() -{ -} +KeyEvent::~KeyEvent() = default; KeyEvent& KeyEvent::operator=(const KeyEvent& rhs) = default; diff --git a/dali/public-api/events/long-press-gesture-detector.cpp b/dali/public-api/events/long-press-gesture-detector.cpp index ca7b4e3..abc7ee4 100644 --- a/dali/public-api/events/long-press-gesture-detector.cpp +++ b/dali/public-api/events/long-press-gesture-detector.cpp @@ -28,9 +28,7 @@ LongPressGestureDetector::LongPressGestureDetector(Internal::LongPressGestureDet { } -LongPressGestureDetector::LongPressGestureDetector() -{ -} +LongPressGestureDetector::LongPressGestureDetector() = default; LongPressGestureDetector LongPressGestureDetector::New() { @@ -58,14 +56,9 @@ LongPressGestureDetector LongPressGestureDetector::DownCast(BaseHandle handle) return LongPressGestureDetector(dynamic_cast(handle.GetObjectPtr())); } -LongPressGestureDetector::~LongPressGestureDetector() -{ -} +LongPressGestureDetector::~LongPressGestureDetector() = default; -LongPressGestureDetector::LongPressGestureDetector(const LongPressGestureDetector& handle) -: GestureDetector(handle) -{ -} +LongPressGestureDetector::LongPressGestureDetector(const LongPressGestureDetector& handle) = default; LongPressGestureDetector& LongPressGestureDetector::operator=(const LongPressGestureDetector& rhs) { diff --git a/dali/public-api/events/pan-gesture-detector.cpp b/dali/public-api/events/pan-gesture-detector.cpp index 343cf98..a129a81 100644 --- a/dali/public-api/events/pan-gesture-detector.cpp +++ b/dali/public-api/events/pan-gesture-detector.cpp @@ -36,9 +36,7 @@ PanGestureDetector::PanGestureDetector(Internal::PanGestureDetector* internal) { } -PanGestureDetector::PanGestureDetector() -{ -} +PanGestureDetector::PanGestureDetector() = default; PanGestureDetector PanGestureDetector::New() { @@ -52,14 +50,9 @@ PanGestureDetector PanGestureDetector::DownCast(BaseHandle handle) return PanGestureDetector(dynamic_cast(handle.GetObjectPtr())); } -PanGestureDetector::~PanGestureDetector() -{ -} +PanGestureDetector::~PanGestureDetector() = default; -PanGestureDetector::PanGestureDetector(const PanGestureDetector& handle) -: GestureDetector(handle) -{ -} +PanGestureDetector::PanGestureDetector(const PanGestureDetector& handle) = default; PanGestureDetector& PanGestureDetector::operator=(const PanGestureDetector& rhs) { diff --git a/dali/public-api/events/pinch-gesture-detector.cpp b/dali/public-api/events/pinch-gesture-detector.cpp index 933f336..f2244f6 100644 --- a/dali/public-api/events/pinch-gesture-detector.cpp +++ b/dali/public-api/events/pinch-gesture-detector.cpp @@ -28,9 +28,7 @@ PinchGestureDetector::PinchGestureDetector(Internal::PinchGestureDetector* inter { } -PinchGestureDetector::PinchGestureDetector() -{ -} +PinchGestureDetector::PinchGestureDetector() = default; PinchGestureDetector PinchGestureDetector::New() { @@ -44,14 +42,9 @@ PinchGestureDetector PinchGestureDetector::DownCast(BaseHandle handle) return PinchGestureDetector(dynamic_cast(handle.GetObjectPtr())); } -PinchGestureDetector::~PinchGestureDetector() -{ -} +PinchGestureDetector::~PinchGestureDetector() = default; -PinchGestureDetector::PinchGestureDetector(const PinchGestureDetector& handle) -: GestureDetector(handle) -{ -} +PinchGestureDetector::PinchGestureDetector(const PinchGestureDetector& handle) = default; PinchGestureDetector& PinchGestureDetector::operator=(const PinchGestureDetector& rhs) { diff --git a/dali/public-api/events/rotation-gesture-detector.cpp b/dali/public-api/events/rotation-gesture-detector.cpp index 778fac4..0f84368 100644 --- a/dali/public-api/events/rotation-gesture-detector.cpp +++ b/dali/public-api/events/rotation-gesture-detector.cpp @@ -28,9 +28,7 @@ RotationGestureDetector::RotationGestureDetector(Internal::RotationGestureDetect { } -RotationGestureDetector::RotationGestureDetector() -{ -} +RotationGestureDetector::RotationGestureDetector() = default; RotationGestureDetector RotationGestureDetector::New() { @@ -44,14 +42,9 @@ RotationGestureDetector RotationGestureDetector::DownCast(BaseHandle handle) return RotationGestureDetector(dynamic_cast(handle.GetObjectPtr())); } -RotationGestureDetector::~RotationGestureDetector() -{ -} +RotationGestureDetector::~RotationGestureDetector() = default; -RotationGestureDetector::RotationGestureDetector(const RotationGestureDetector& handle) -: GestureDetector(handle) -{ -} +RotationGestureDetector::RotationGestureDetector(const RotationGestureDetector& handle) = default; RotationGestureDetector& RotationGestureDetector::operator=(const RotationGestureDetector& rhs) { diff --git a/dali/public-api/events/tap-gesture-detector.cpp b/dali/public-api/events/tap-gesture-detector.cpp index ee42cc1..fa9376d 100644 --- a/dali/public-api/events/tap-gesture-detector.cpp +++ b/dali/public-api/events/tap-gesture-detector.cpp @@ -28,9 +28,7 @@ TapGestureDetector::TapGestureDetector(Internal::TapGestureDetector* internal) { } -TapGestureDetector::TapGestureDetector() -{ -} +TapGestureDetector::TapGestureDetector() = default; TapGestureDetector TapGestureDetector::New() { @@ -51,14 +49,9 @@ TapGestureDetector TapGestureDetector::DownCast(BaseHandle handle) return TapGestureDetector(dynamic_cast(handle.GetObjectPtr())); } -TapGestureDetector::~TapGestureDetector() -{ -} +TapGestureDetector::~TapGestureDetector() = default; -TapGestureDetector::TapGestureDetector(const TapGestureDetector& handle) -: GestureDetector(handle) -{ -} +TapGestureDetector::TapGestureDetector(const TapGestureDetector& handle) = default; TapGestureDetector& TapGestureDetector::operator=(const TapGestureDetector& rhs) { diff --git a/dali/public-api/events/wheel-event.cpp b/dali/public-api/events/wheel-event.cpp index e179135..95436f5 100644 --- a/dali/public-api/events/wheel-event.cpp +++ b/dali/public-api/events/wheel-event.cpp @@ -32,9 +32,7 @@ WheelEvent::WheelEvent(const WheelEvent& rhs) = default; WheelEvent::WheelEvent(WheelEvent&& rhs) = default; -WheelEvent::~WheelEvent() -{ -} +WheelEvent::~WheelEvent() = default; WheelEvent& WheelEvent::operator=(const WheelEvent& rhs) = default; diff --git a/dali/public-api/images/native-image-interface.h b/dali/public-api/images/native-image-interface.h index 249cd91..717e365 100644 --- a/dali/public-api/images/native-image-interface.h +++ b/dali/public-api/images/native-image-interface.h @@ -163,9 +163,7 @@ protected: * The implementation should destroy the NativeImage resources. * @SINCE_1_0.0 */ - ~NativeImageInterface() override - { - } + ~NativeImageInterface() override = default; }; /** diff --git a/dali/public-api/images/pixel-data.cpp b/dali/public-api/images/pixel-data.cpp index 8b401bd..7086e7d 100644 --- a/dali/public-api/images/pixel-data.cpp +++ b/dali/public-api/images/pixel-data.cpp @@ -34,13 +34,9 @@ PixelData PixelData::New(uint8_t* buffer, return PixelData(internal.Get()); } -PixelData::PixelData() -{ -} +PixelData::PixelData() = default; -PixelData::~PixelData() -{ -} +PixelData::~PixelData() = default; PixelData::PixelData(Internal::PixelData* internal) : BaseHandle(internal) diff --git a/dali/public-api/math/matrix3.h b/dali/public-api/math/matrix3.h index 693857a..8876bc1 100644 --- a/dali/public-api/math/matrix3.h +++ b/dali/public-api/math/matrix3.h @@ -159,9 +159,7 @@ public: * @brief Destructor. * @SINCE_1_0.0 */ - ~Matrix3() - { - } + ~Matrix3() = default; /** * @brief Sets the matrix to the identity matrix. diff --git a/dali/public-api/math/quaternion.cpp b/dali/public-api/math/quaternion.cpp index eb68c50..e682660 100644 --- a/dali/public-api/math/quaternion.cpp +++ b/dali/public-api/math/quaternion.cpp @@ -113,9 +113,7 @@ Quaternion::Quaternion(const Vector3& v0, const Vector3& v1) } } -Quaternion::~Quaternion() -{ -} +Quaternion::~Quaternion() = default; bool Quaternion::IsIdentity() const { diff --git a/dali/public-api/object/base-handle.cpp b/dali/public-api/object/base-handle.cpp index c9675ed..121cc0d 100644 --- a/dali/public-api/object/base-handle.cpp +++ b/dali/public-api/object/base-handle.cpp @@ -33,13 +33,9 @@ BaseHandle::BaseHandle(Dali::BaseObject* handle) { } -BaseHandle::BaseHandle() -{ -} +BaseHandle::BaseHandle() = default; -BaseHandle::~BaseHandle() -{ -} +BaseHandle::~BaseHandle() = default; BaseHandle::BaseHandle(const BaseHandle& handle) = default; diff --git a/dali/public-api/object/base-object.cpp b/dali/public-api/object/base-object.cpp index 41d00e6..98ed327 100644 --- a/dali/public-api/object/base-object.cpp +++ b/dali/public-api/object/base-object.cpp @@ -34,9 +34,7 @@ BaseObject::BaseObject() { } -BaseObject::~BaseObject() -{ -} +BaseObject::~BaseObject() = default; void BaseObject::RegisterObject() { diff --git a/dali/public-api/object/handle.cpp b/dali/public-api/object/handle.cpp index d765582..b09c0e5 100644 --- a/dali/public-api/object/handle.cpp +++ b/dali/public-api/object/handle.cpp @@ -33,18 +33,14 @@ Handle::Handle(Dali::Internal::Object* handle) { } -Handle::Handle() -{ -} +Handle::Handle() = default; Handle Handle::New() { return Handle(Internal::Object::New().Get()); } -Handle::~Handle() -{ -} +Handle::~Handle() = default; Handle::Handle(const Handle& handle) = default; diff --git a/dali/public-api/object/object-registry.cpp b/dali/public-api/object/object-registry.cpp index 7830abd..b7f9a37 100644 --- a/dali/public-api/object/object-registry.cpp +++ b/dali/public-api/object/object-registry.cpp @@ -23,13 +23,9 @@ namespace Dali { -ObjectRegistry::ObjectRegistry() -{ -} +ObjectRegistry::ObjectRegistry() = default; -ObjectRegistry::~ObjectRegistry() -{ -} +ObjectRegistry::~ObjectRegistry() = default; ObjectRegistry::ObjectRegistry(const ObjectRegistry& copy) = default; diff --git a/dali/public-api/object/property-conditions.cpp b/dali/public-api/object/property-conditions.cpp index 46ee48f..9929d6e 100644 --- a/dali/public-api/object/property-conditions.cpp +++ b/dali/public-api/object/property-conditions.cpp @@ -29,9 +29,7 @@ PropertyCondition::PropertyCondition() { } -PropertyCondition::~PropertyCondition() -{ -} +PropertyCondition::~PropertyCondition() = default; PropertyCondition::PropertyCondition(const PropertyCondition& handle) = default; diff --git a/dali/public-api/object/property-input.cpp b/dali/public-api/object/property-input.cpp index 3b6c820..1f83cb5 100644 --- a/dali/public-api/object/property-input.cpp +++ b/dali/public-api/object/property-input.cpp @@ -20,8 +20,6 @@ namespace Dali { -PropertyInput::~PropertyInput() -{ -} +PropertyInput::~PropertyInput() = default; } // namespace Dali diff --git a/dali/public-api/object/property-notification.cpp b/dali/public-api/object/property-notification.cpp index 682b845..6f9e26f 100644 --- a/dali/public-api/object/property-notification.cpp +++ b/dali/public-api/object/property-notification.cpp @@ -29,9 +29,7 @@ namespace Dali { -PropertyNotification::PropertyNotification() -{ -} +PropertyNotification::PropertyNotification() = default; PropertyNotification::PropertyNotification(Internal::PropertyNotification* propertyNotification) : BaseHandle(propertyNotification) @@ -43,9 +41,7 @@ PropertyNotification PropertyNotification::DownCast(BaseHandle handle) return PropertyNotification(dynamic_cast(handle.GetObjectPtr())); } -PropertyNotification::~PropertyNotification() -{ -} +PropertyNotification::~PropertyNotification() = default; PropertyNotification::PropertyNotification(const PropertyNotification& copy) = default; diff --git a/dali/public-api/object/property.cpp b/dali/public-api/object/property.cpp index 77aa921..37a272a 100644 --- a/dali/public-api/object/property.cpp +++ b/dali/public-api/object/property.cpp @@ -53,8 +53,6 @@ Property::Property(Handle& obj, const std::string& propertyName, int32_t compInd propertyIndex = object.GetPropertyIndex(propertyName); } -Property::~Property() -{ -} +Property::~Property() = default; } // namespace Dali diff --git a/dali/public-api/object/type-info.cpp b/dali/public-api/object/type-info.cpp index 76e147c..50a1fc9 100644 --- a/dali/public-api/object/type-info.cpp +++ b/dali/public-api/object/type-info.cpp @@ -25,13 +25,9 @@ namespace Dali { -TypeInfo::TypeInfo() -{ -} +TypeInfo::TypeInfo() = default; -TypeInfo::~TypeInfo() -{ -} +TypeInfo::~TypeInfo() = default; TypeInfo::TypeInfo(const TypeInfo& copy) = default; diff --git a/dali/public-api/object/type-registry.cpp b/dali/public-api/object/type-registry.cpp index e9a0ab2..93e0d0e 100644 --- a/dali/public-api/object/type-registry.cpp +++ b/dali/public-api/object/type-registry.cpp @@ -27,13 +27,9 @@ namespace Dali { -TypeRegistry::TypeRegistry() -{ -} +TypeRegistry::TypeRegistry() = default; -TypeRegistry::~TypeRegistry() -{ -} +TypeRegistry::~TypeRegistry() = default; TypeRegistry::TypeRegistry(const TypeRegistry& copy) = default; diff --git a/dali/public-api/object/weak-handle.h b/dali/public-api/object/weak-handle.h index 91a0795..b3a8aa7 100644 --- a/dali/public-api/object/weak-handle.h +++ b/dali/public-api/object/weak-handle.h @@ -162,9 +162,7 @@ public: /** * @copydoc Dali::WeakHandleBase::~WeakHandleBase() */ - ~WeakHandle() - { - } + ~WeakHandle() = default; /** * @copydoc Dali::WeakHandleBase::WeakHandleBase(const WeakHandleBase&) diff --git a/dali/public-api/render-tasks/render-task-list.cpp b/dali/public-api/render-tasks/render-task-list.cpp index 60bfeda..eabd958 100644 --- a/dali/public-api/render-tasks/render-task-list.cpp +++ b/dali/public-api/render-tasks/render-task-list.cpp @@ -23,18 +23,14 @@ namespace Dali { -RenderTaskList::RenderTaskList() -{ -} +RenderTaskList::RenderTaskList() = default; RenderTaskList RenderTaskList::DownCast(BaseHandle handle) { return RenderTaskList(dynamic_cast(handle.GetObjectPtr())); } -RenderTaskList::~RenderTaskList() -{ -} +RenderTaskList::~RenderTaskList() = default; RenderTaskList::RenderTaskList(const RenderTaskList& handle) = default; diff --git a/dali/public-api/render-tasks/render-task.cpp b/dali/public-api/render-tasks/render-task.cpp index bba07a4..1688b26 100644 --- a/dali/public-api/render-tasks/render-task.cpp +++ b/dali/public-api/render-tasks/render-task.cpp @@ -48,18 +48,14 @@ const bool RenderTask::DEFAULT_CLEAR_ENABLED = false; const bool RenderTask::DEFAULT_CULL_MODE = true; const uint32_t RenderTask::DEFAULT_REFRESH_RATE = REFRESH_ALWAYS; -RenderTask::RenderTask() -{ -} +RenderTask::RenderTask() = default; RenderTask RenderTask::DownCast(BaseHandle handle) { return RenderTask(dynamic_cast(handle.GetObjectPtr())); } -RenderTask::~RenderTask() -{ -} +RenderTask::~RenderTask() = default; RenderTask::RenderTask(const RenderTask& handle) = default; diff --git a/dali/public-api/rendering/frame-buffer.cpp b/dali/public-api/rendering/frame-buffer.cpp index 8fc7aeb..4b45a92 100644 --- a/dali/public-api/rendering/frame-buffer.cpp +++ b/dali/public-api/rendering/frame-buffer.cpp @@ -56,13 +56,9 @@ FrameBuffer FrameBuffer::New(uint32_t width, uint32_t height, Attachment::Mask a return FrameBuffer(frameBuffer.Get()); } -FrameBuffer::FrameBuffer() -{ -} +FrameBuffer::FrameBuffer() = default; -FrameBuffer::~FrameBuffer() -{ -} +FrameBuffer::~FrameBuffer() = default; FrameBuffer::FrameBuffer(const FrameBuffer& handle) = default; diff --git a/dali/public-api/rendering/geometry.cpp b/dali/public-api/rendering/geometry.cpp index 09e9303..6c82097 100644 --- a/dali/public-api/rendering/geometry.cpp +++ b/dali/public-api/rendering/geometry.cpp @@ -29,13 +29,9 @@ Geometry Geometry::New() return Geometry(geometry.Get()); } -Geometry::Geometry() -{ -} +Geometry::Geometry() = default; -Geometry::~Geometry() -{ -} +Geometry::~Geometry() = default; Geometry::Geometry(const Geometry& handle) = default; diff --git a/dali/public-api/rendering/renderer.cpp b/dali/public-api/rendering/renderer.cpp index be49c1b..f857986 100644 --- a/dali/public-api/rendering/renderer.cpp +++ b/dali/public-api/rendering/renderer.cpp @@ -31,13 +31,9 @@ Renderer Renderer::New(Geometry& geometry, Shader& shader) return Renderer(renderer.Get()); } -Renderer::Renderer() -{ -} +Renderer::Renderer() = default; -Renderer::~Renderer() -{ -} +Renderer::~Renderer() = default; Renderer::Renderer(const Renderer& handle) = default; diff --git a/dali/public-api/rendering/sampler.cpp b/dali/public-api/rendering/sampler.cpp index 8dd4eaa..990e2ee 100644 --- a/dali/public-api/rendering/sampler.cpp +++ b/dali/public-api/rendering/sampler.cpp @@ -29,13 +29,9 @@ Sampler Sampler::New() return Sampler(sampler.Get()); } -Sampler::Sampler() -{ -} +Sampler::Sampler() = default; -Sampler::~Sampler() -{ -} +Sampler::~Sampler() = default; Sampler::Sampler(const Sampler& handle) = default; diff --git a/dali/public-api/rendering/shader.cpp b/dali/public-api/rendering/shader.cpp index d452ea3..760bf79 100644 --- a/dali/public-api/rendering/shader.cpp +++ b/dali/public-api/rendering/shader.cpp @@ -31,13 +31,9 @@ Shader Shader::New(const std::string& vertexShader, return Shader(renderer.Get()); } -Shader::Shader() -{ -} +Shader::Shader() = default; -Shader::~Shader() -{ -} +Shader::~Shader() = default; Shader::Shader(const Shader& handle) = default; diff --git a/dali/public-api/rendering/texture-set.cpp b/dali/public-api/rendering/texture-set.cpp index 62e908a..6f9fa6b 100644 --- a/dali/public-api/rendering/texture-set.cpp +++ b/dali/public-api/rendering/texture-set.cpp @@ -31,13 +31,9 @@ TextureSet TextureSet::New() return TextureSet(textureSet.Get()); } -TextureSet::TextureSet() -{ -} +TextureSet::TextureSet() = default; -TextureSet::~TextureSet() -{ -} +TextureSet::~TextureSet() = default; TextureSet::TextureSet(const TextureSet& handle) = default; diff --git a/dali/public-api/rendering/texture.cpp b/dali/public-api/rendering/texture.cpp index c348a95..da81783 100644 --- a/dali/public-api/rendering/texture.cpp +++ b/dali/public-api/rendering/texture.cpp @@ -36,13 +36,9 @@ Texture Texture::New(NativeImageInterface& nativeImageInterface) return Texture(texture.Get()); } -Texture::Texture() -{ -} +Texture::Texture() = default; -Texture::~Texture() -{ -} +Texture::~Texture() = default; Texture::Texture(const Texture& handle) = default; diff --git a/dali/public-api/rendering/vertex-buffer.cpp b/dali/public-api/rendering/vertex-buffer.cpp index a267edd..4adb49b 100644 --- a/dali/public-api/rendering/vertex-buffer.cpp +++ b/dali/public-api/rendering/vertex-buffer.cpp @@ -31,13 +31,9 @@ VertexBuffer VertexBuffer::New(Dali::Property::Map& bufferFormat) return VertexBuffer(vertexBuffer.Get()); } -VertexBuffer::VertexBuffer() -{ -} +VertexBuffer::VertexBuffer() = default; -VertexBuffer::~VertexBuffer() -{ -} +VertexBuffer::~VertexBuffer() = default; VertexBuffer::VertexBuffer(const VertexBuffer& handle) = default; diff --git a/dali/public-api/signals/connection-tracker-interface.cpp b/dali/public-api/signals/connection-tracker-interface.cpp index 97da38a..7326407 100644 --- a/dali/public-api/signals/connection-tracker-interface.cpp +++ b/dali/public-api/signals/connection-tracker-interface.cpp @@ -20,12 +20,8 @@ namespace Dali { -ConnectionTrackerInterface::ConnectionTrackerInterface() -{ -} +ConnectionTrackerInterface::ConnectionTrackerInterface() = default; -ConnectionTrackerInterface::~ConnectionTrackerInterface() -{ -} +ConnectionTrackerInterface::~ConnectionTrackerInterface() = default; } // namespace Dali diff --git a/dali/public-api/signals/connection-tracker.cpp b/dali/public-api/signals/connection-tracker.cpp index ef7a4c5..5499ae9 100644 --- a/dali/public-api/signals/connection-tracker.cpp +++ b/dali/public-api/signals/connection-tracker.cpp @@ -24,9 +24,7 @@ namespace Dali { -ConnectionTracker::ConnectionTracker() -{ -} +ConnectionTracker::ConnectionTracker() = default; ConnectionTracker::~ConnectionTracker() { diff --git a/dali/public-api/signals/signal-slot-observers.cpp b/dali/public-api/signals/signal-slot-observers.cpp index b8c293a..67151a9 100644 --- a/dali/public-api/signals/signal-slot-observers.cpp +++ b/dali/public-api/signals/signal-slot-observers.cpp @@ -20,20 +20,12 @@ namespace Dali { -SignalObserver::SignalObserver() -{ -} +SignalObserver::SignalObserver() = default; -SignalObserver::~SignalObserver() -{ -} +SignalObserver::~SignalObserver() = default; -SlotObserver::SlotObserver() -{ -} +SlotObserver::SlotObserver() = default; -SlotObserver::~SlotObserver() -{ -} +SlotObserver::~SlotObserver() = default; } // namespace Dali diff --git a/dali/public-api/signals/slot-delegate.h b/dali/public-api/signals/slot-delegate.h index acbd1ff..a757da6 100644 --- a/dali/public-api/signals/slot-delegate.h +++ b/dali/public-api/signals/slot-delegate.h @@ -92,9 +92,7 @@ public: * * @SINCE_1_0.0 */ - ~SlotDelegate() - { - } + ~SlotDelegate() = default; /** * @brief Disconnects all signals from this object. diff --git a/dali/public-api/size-negotiation/relayout-container.h b/dali/public-api/size-negotiation/relayout-container.h index 19a076e..515b6b3 100644 --- a/dali/public-api/size-negotiation/relayout-container.h +++ b/dali/public-api/size-negotiation/relayout-container.h @@ -44,17 +44,13 @@ public: * * @SINCE_1_0.0 */ - RelayoutContainer() - { - } + RelayoutContainer() = default; /** * @brief Virtual destructor. * @SINCE_1_0.0 */ - virtual ~RelayoutContainer() - { - } + virtual ~RelayoutContainer() = default; /** * @brief Adds relayout information to the container if it doesn't already exist. -- 2.7.4