Skip to content

Commit e2ec47a

Browse files
committed
Add move constructor as copy elision is not obrigatory in C++14. (#7854)
1 parent b4d43d0 commit e2ec47a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/common/TimeZoneUtil.h

+7
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ class IcuCalendarWrapper
149149
cachePtr(aCachePtr)
150150
{}
151151

152+
IcuCalendarWrapper(IcuCalendarWrapper&& o)
153+
: wrapped(o.wrapped),
154+
cachePtr(o.cachePtr)
155+
{
156+
o.wrapped = nullptr;
157+
}
158+
152159
~IcuCalendarWrapper()
153160
{
154161
if (wrapped)

0 commit comments

Comments
 (0)