8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

Add move constructor as copy elision is not obrigatory in C++14. (#7854)

This commit is contained in:
Adriano dos Santos Fernandes 2023-11-21 20:32:56 -03:00
parent b4d43d08b2
commit e2ec47a8ce

View File

@ -149,6 +149,13 @@ public:
cachePtr(aCachePtr)
{}
IcuCalendarWrapper(IcuCalendarWrapper&& o)
: wrapped(o.wrapped),
cachePtr(o.cachePtr)
{
o.wrapped = nullptr;
}
~IcuCalendarWrapper()
{
if (wrapped)