diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-04 01:21:57 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-08 13:46:01 +0100 |
commit | 8e81d25f5d50df77fb587da3d18abe6a7fa24e73 (patch) | |
tree | cd94d66c4078ae3938c9a6da4b0010a9c6a5551f /intl | |
parent | 0cfefdfd4221e043317b7838ca050cb853621e69 (diff) | |
download | uxp-8e81d25f5d50df77fb587da3d18abe6a7fa24e73.tar.gz |
Issue #2342: Use [[nodiscard]] in /hal /image and /intl
Diffstat (limited to 'intl')
-rw-r--r-- | intl/uconv/nsIUnicodeDecoder.h | 6 | ||||
-rw-r--r-- | intl/uconv/nsIUnicodeEncoder.h | 6 | ||||
-rw-r--r-- | intl/uconv/nsReplacementToUnicode.h | 6 | ||||
-rw-r--r-- | intl/uconv/nsUTF8ToUnicode.h | 6 | ||||
-rw-r--r-- | intl/uconv/nsUnicodeToUTF8.h | 6 | ||||
-rw-r--r-- | intl/uconv/ucvlatin/nsUTF16ToUnicode.h | 6 | ||||
-rw-r--r-- | intl/uconv/ucvlatin/nsUnicodeToUTF16.h | 6 | ||||
-rw-r--r-- | intl/uconv/ucvtw/nsUnicodeToBIG5.h | 6 |
8 files changed, 24 insertions, 24 deletions
diff --git a/intl/uconv/nsIUnicodeDecoder.h b/intl/uconv/nsIUnicodeDecoder.h index 36a46759b5..539eae6be6 100644 --- a/intl/uconv/nsIUnicodeDecoder.h +++ b/intl/uconv/nsIUnicodeDecoder.h @@ -110,9 +110,9 @@ public: * NS_ERROR_OUT_OF_MEMORY if OOM * NS_OK is all we have is an approximation */ - MOZ_MUST_USE NS_IMETHOD GetMaxLength(const char* aSrc, - int32_t aSrcLength, - int32_t* aDestLength) = 0; + [[nodiscard]] NS_IMETHOD GetMaxLength(const char* aSrc, + int32_t aSrcLength, + int32_t* aDestLength) = 0; /** * Resets the charset converter so it may be recycled for a completely diff --git a/intl/uconv/nsIUnicodeEncoder.h b/intl/uconv/nsIUnicodeEncoder.h index e704a21955..67d0cd7bd0 100644 --- a/intl/uconv/nsIUnicodeEncoder.h +++ b/intl/uconv/nsIUnicodeEncoder.h @@ -135,9 +135,9 @@ public: * NS_ERROR_OUT_OF_MEMORY if OOM * NS_OK if all we have is an approximation */ - MOZ_MUST_USE NS_IMETHOD GetMaxLength(const char16_t* aSrc, - int32_t aSrcLength, - int32_t* aDestLength) = 0; + [[nodiscard]] NS_IMETHOD GetMaxLength(const char16_t* aSrc, + int32_t aSrcLength, + int32_t* aDestLength) = 0; /** * Resets the charset converter so it may be recycled for a completely diff --git a/intl/uconv/nsReplacementToUnicode.h b/intl/uconv/nsReplacementToUnicode.h index fd19e8892f..a2e3058ab8 100644 --- a/intl/uconv/nsReplacementToUnicode.h +++ b/intl/uconv/nsReplacementToUnicode.h @@ -24,9 +24,9 @@ public: char16_t* aDest, int32_t* aDestLength) override; - MOZ_MUST_USE NS_IMETHOD GetMaxLength(const char* aSrc, - int32_t aSrcLength, - int32_t* aDestLength) override; + [[nodiscard]] NS_IMETHOD GetMaxLength(const char* aSrc, + int32_t aSrcLength, + int32_t* aDestLength) override; NS_IMETHOD Reset() override; diff --git a/intl/uconv/nsUTF8ToUnicode.h b/intl/uconv/nsUTF8ToUnicode.h index d80fa18992..ebac158881 100644 --- a/intl/uconv/nsUTF8ToUnicode.h +++ b/intl/uconv/nsUTF8ToUnicode.h @@ -49,9 +49,9 @@ protected: //-------------------------------------------------------------------- // Subclassing of nsDecoderSupport class [declaration] - MOZ_MUST_USE NS_IMETHOD GetMaxLength(const char* aSrc, - int32_t aSrcLength, - int32_t* aDestLength) override; + [[nodiscard]] NS_IMETHOD GetMaxLength(const char* aSrc, + int32_t aSrcLength, + int32_t* aDestLength) override; //-------------------------------------------------------------------- // Subclassing of nsBasicDecoderSupport class [declaration] diff --git a/intl/uconv/nsUnicodeToUTF8.h b/intl/uconv/nsUnicodeToUTF8.h index 410bde2813..e76ad5dbc5 100644 --- a/intl/uconv/nsUnicodeToUTF8.h +++ b/intl/uconv/nsUnicodeToUTF8.h @@ -48,9 +48,9 @@ public: NS_IMETHOD Finish(char* aDest, int32_t* aDestLength) override; - MOZ_MUST_USE NS_IMETHOD GetMaxLength(const char16_t* aSrc, - int32_t aSrcLength, - int32_t* aDestLength) override; + [[nodiscard]] NS_IMETHOD GetMaxLength(const char16_t* aSrc, + int32_t aSrcLength, + int32_t* aDestLength) override; NS_IMETHOD Reset() override {mHighSurrogate = 0; return NS_OK;} diff --git a/intl/uconv/ucvlatin/nsUTF16ToUnicode.h b/intl/uconv/ucvlatin/nsUTF16ToUnicode.h index 227fb412f4..1c39249429 100644 --- a/intl/uconv/ucvlatin/nsUTF16ToUnicode.h +++ b/intl/uconv/ucvlatin/nsUTF16ToUnicode.h @@ -24,9 +24,9 @@ public: //-------------------------------------------------------------------- // Subclassing of nsDecoderSupport class [declaration] - MOZ_MUST_USE NS_IMETHOD GetMaxLength(const char* aSrc, - int32_t aSrcLength, - int32_t* aDestLength) override; + [[nodiscard]] NS_IMETHOD GetMaxLength(const char* aSrc, + int32_t aSrcLength, + int32_t* aDestLength) override; NS_IMETHOD Reset() override; protected: diff --git a/intl/uconv/ucvlatin/nsUnicodeToUTF16.h b/intl/uconv/ucvlatin/nsUnicodeToUTF16.h index b024a1b421..538da8e917 100644 --- a/intl/uconv/ucvlatin/nsUnicodeToUTF16.h +++ b/intl/uconv/ucvlatin/nsUnicodeToUTF16.h @@ -19,9 +19,9 @@ public: NS_IMETHOD Convert(const char16_t* aSrc, int32_t* aSrcLength, char* aDest, int32_t* aDestLength); - MOZ_MUST_USE NS_IMETHOD GetMaxLength(const char16_t* aSrc, - int32_t aSrcLength, - int32_t* aDestLength); + [[nodiscard]] NS_IMETHOD GetMaxLength(const char16_t* aSrc, + int32_t aSrcLength, + int32_t* aDestLength); NS_IMETHOD Finish(char* aDest, int32_t* aDestLength); NS_IMETHOD Reset(); NS_IMETHOD SetOutputErrorBehavior(int32_t aBehavior, diff --git a/intl/uconv/ucvtw/nsUnicodeToBIG5.h b/intl/uconv/ucvtw/nsUnicodeToBIG5.h index 51e2c0928e..42e4297f8c 100644 --- a/intl/uconv/ucvtw/nsUnicodeToBIG5.h +++ b/intl/uconv/ucvtw/nsUnicodeToBIG5.h @@ -29,9 +29,9 @@ public: NS_IMETHOD Finish(char* aDest, int32_t* aDestLength) override; - MOZ_MUST_USE NS_IMETHOD GetMaxLength(const char16_t* aSrc, - int32_t aSrcLength, - int32_t* aDestLength) override; + [[nodiscard]] NS_IMETHOD GetMaxLength(const char16_t* aSrc, + int32_t aSrcLength, + int32_t* aDestLength) override; NS_IMETHOD Reset() override; |