Index: i18n/currunit.cpp |
=================================================================== |
--- i18n/currunit.cpp (revision 41097) |
+++ i18n/currunit.cpp (working copy) |
@@ -38,6 +38,10 @@ |
u_strcpy(isoCode, other.isoCode); |
} |
+// Call copy constructor from move constructor since there is nothing to move |
+CurrencyUnit::CurrencyUnit(CurrencyUnit&& src) U_NOEXCEPT |
+ : CurrencyUnit(static_cast<CurrencyUnit&>(src)) {} |
+ |
CurrencyUnit::CurrencyUnit(const MeasureUnit& other, UErrorCode& ec) : MeasureUnit(other) { |
// Make sure this is a currency. |
// OK to hard-code the string because we are comparing against another hard-coded string. |
@@ -67,6 +71,12 @@ |
return *this; |
} |
+// Call copy assignment from move assignment since there is nothing to move |
+CurrencyUnit& CurrencyUnit::operator=(CurrencyUnit&& src) U_NOEXCEPT { |
+ *this = static_cast<CurrencyUnit&>(src); |
+ return *this; |
+} |
+ |
UObject* CurrencyUnit::clone() const { |
return new CurrencyUnit(*this); |
} |