Imported Upstream version 58.1
[platform/upstream/icu.git] / source / i18n / unicode / dtitvinf.h
index 2b23dfe..325eca6 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
  *******************************************************************************
  * Copyright (C) 2008-2016, International Business Machines Corporation and
@@ -150,7 +152,8 @@ U_NAMESPACE_BEGIN
 
 class U_I18N_API DateIntervalInfo U_FINAL : public UObject {
 public:
-#ifndef U_HIDE_INTERNAL_API
+    // Do not enclose the protected default constructor with #ifndef U_HIDE_INTERNAL_API
+    // or else the compiler will create a public default constructor.
     /**
      * Default constructor.
      * It does not initialize any interval patterns except
@@ -165,7 +168,6 @@ public:
      * @internal ICU 4.0
      */
     DateIntervalInfo(UErrorCode& status);
-#endif  /* U_HIDE_INTERNAL_API */
 
 
     /**
@@ -339,7 +341,10 @@ private:
      */
     friend class DateIntervalFormat;
 
-    friend struct DateIntervalSink;
+    /**
+     * Internal struct used to load resource bundle data.
+     */
+    struct DateIntervalSink;
 
     /**
      * Following is for saving the interval patterns.