]> granicus.if.org Git - icu/commitdiff
Add LongNameHandler::LongNameHandler(). AllowShortFunctionsOnASingleLine: false
authorHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Tue, 30 Jun 2020 22:29:05 +0000 (00:29 +0200)
committerHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Tue, 30 Jun 2020 22:29:05 +0000 (00:29 +0200)
icu4c/source/i18n/number_longnames.cpp
icu4c/source/i18n/number_longnames.h

index 012fae7d2b9bcf84f9c11125d18e8dde183f752f..9904c5b7c967207782987870174902e30f62be9b 100644 (file)
@@ -422,7 +422,7 @@ LongNameMultiplexer::forMeasureUnits(const Locale &loc, const MaybeStackVector<M
     for (int32_t i = 0, length = units.length(); i < length; i++) {
         // Create empty new LongNameHandler:
         LongNameHandler *lnh =
-            result->fLongNameHandlers.emplaceBackAndCheckErrorCode(status, nullptr, nullptr);
+            result->fLongNameHandlers.emplaceBackAndCheckErrorCode(status);
         result->fMeasureUnits[i] = *units[i];
         // Fill in LongNameHandler:
         LongNameHandler::forMeasureUnit(loc, *units[i],
index f12767513e189cdbd42265dc5467f1b73b27a052..b0bdbc347d55d70fbcaf762463cdf96e9bf95ff6 100644 (file)
@@ -52,7 +52,11 @@ class LongNameHandler : public MicroPropsGenerator, public ModifierStore, public
     const MicroPropsGenerator *parent;
 
     LongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent)
-            : rules(rules), parent(parent) {}
+        : rules(rules), parent(parent) {
+    }
+
+    LongNameHandler() : rules(nullptr), parent(nullptr) {
+    }
 
     friend class MemoryPool<LongNameHandler>; // To enable emplaceBack();