Minor coverity issue fixes
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / navigation-view / navigation-view.cpp
1 /*
2  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali-toolkit/devel-api/controls/navigation-view/navigation-view.h>
20
21 // EXTERNAL INCLUDES
22
23 // INTERNAL INCLUDES
24 #include <dali-toolkit/internal/controls/navigation-view/navigation-view-impl.h>
25
26 namespace Dali
27 {
28 namespace Toolkit
29 {
30 NavigationView::NavigationView()
31 {
32 }
33
34 NavigationView::NavigationView(const NavigationView& handle) = default;
35
36 NavigationView& NavigationView::operator=(const NavigationView& handle) = default;
37
38 NavigationView::NavigationView(NavigationView&& handle) = default;
39
40 NavigationView& NavigationView::operator=(NavigationView&& handle) = default;
41
42 NavigationView::~NavigationView()
43 {
44 }
45
46 NavigationView NavigationView::New()
47 {
48   return Internal::NavigationView::New();
49 }
50
51 NavigationView NavigationView::DownCast(BaseHandle handle)
52 {
53   return Control::DownCast<NavigationView, Internal::NavigationView>(handle);
54 }
55
56 NavigationView::NavigationView(Internal::NavigationView& implementation)
57 : Control(implementation)
58 {
59 }
60
61 NavigationView::NavigationView(Dali::Internal::CustomActor* internal)
62 : Control(internal)
63 {
64   VerifyCustomActorPointer<Internal::NavigationView>(internal);
65 }
66
67 void NavigationView::Push(Actor actor)
68 {
69   GetImpl(*this).Push(actor);
70 }
71
72 Actor NavigationView::Pop()
73 {
74   return GetImpl(*this).Pop();
75 }
76
77 } // namespace Toolkit
78
79 } // namespace Dali