Skip to content

Commit c255458

Browse files
David Kilzerjustinmichaud
authored andcommitted
LIFETIME_BOUND attribute requires a parameter name
<https://bugs.webkit.org/show_bug.cgi?id=287119> <rdar://143914228> Reviewed by Geoffrey Garen. Add parameter name to function declaration when using LIFETIME_BOUND. * Source/WTF/wtf/dtoa.h: (WTF::numberToFixedPrecisionString): (WTF::numberToFixedWidthString): (WTF::numberToStringWithTrailingPoint): (WTF::numberToFixedPrecisionString): (WTF::numberToFixedWidthString): (WTF::numberToStringAndSize): (WTF::numberToCSSString): * Source/WebCore/PAL/pal/text/TextCodec.h: (PAL::TextCodec::getUnencodableReplacement): Canonical link: https://commits.webkit.org/289912@main
1 parent 70d07ca commit c255458

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/WTF/wtf/dtoa.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ WTF_EXPORT_PRIVATE const char* numberToStringWithTrailingPoint(double, NumberToS
4646
WTF_EXPORT_PRIVATE const char* numberToFixedPrecisionString(double, unsigned significantFigures, NumberToStringBuffer&, bool truncateTrailingZeros = false);
4747
WTF_EXPORT_PRIVATE const char* numberToFixedWidthString(double, unsigned decimalPlaces, NumberToStringBuffer&);
4848

49-
WTF_EXPORT_PRIVATE NumberToStringSpan numberToStringAndSize(float, NumberToStringBuffer& LIFETIME_BOUND);
50-
WTF_EXPORT_PRIVATE NumberToStringSpan numberToStringAndSize(double, NumberToStringBuffer& LIFETIME_BOUND);
49+
WTF_EXPORT_PRIVATE NumberToStringSpan numberToStringAndSize(float, NumberToStringBuffer& buffer LIFETIME_BOUND);
50+
WTF_EXPORT_PRIVATE NumberToStringSpan numberToStringAndSize(double, NumberToStringBuffer& buffer LIFETIME_BOUND);
5151

5252
// Fixed width with up to 6 decimal places, trailing zeros truncated.
5353
WTF_EXPORT_PRIVATE const char* numberToCSSString(double, NumberToCSSStringBuffer&);

0 commit comments

Comments
 (0)