projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add move semantics to BaseHandle derived classes in Adaptor public API
[platform/core/uifw/dali-adaptor.git]
/
dali
/
public-api
/
adaptor-framework
/
widget.cpp
diff --git
a/dali/public-api/adaptor-framework/widget.cpp
b/dali/public-api/adaptor-framework/widget.cpp
index
bc8d070
..
7398747
100644
(file)
--- a/
dali/public-api/adaptor-framework/widget.cpp
+++ b/
dali/public-api/adaptor-framework/widget.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 20
17
Samsung Electronics Co., Ltd.
+ * Copyright (c) 20
20
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-38,19
+38,13
@@
Widget::Widget()
{
}
{
}
-Widget::Widget(const Widget& widget)
-: BaseHandle(widget)
-{
-}
+Widget::Widget( const Widget& copy ) = default;
-Widget& Widget::operator=(const Widget& widget)
-{
- if( *this != widget )
- {
- BaseHandle::operator=( widget );
- }
- return *this;
-}
+Widget& Widget::operator=( const Widget& rhs ) = default;
+
+Widget::Widget( Widget&& rhs ) = default;
+
+Widget& Widget::operator=( Widget&& rhs ) = default;
Widget::Widget(Internal::Adaptor::Widget* widget)
: BaseHandle(widget)
Widget::Widget(Internal::Adaptor::Widget* widget)
: BaseHandle(widget)