mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Synchronize explicit instantiations of to_int and to_uint
1. Ensure long and long long are instantiated for to_int. 2. Ensure long and long long are not instantiated for to_uint.
This commit is contained in:
parent
a67ad665b1
commit
d28c9ba054
Notes:
sideshowbarker
2024-07-17 09:48:50 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/d28c9ba054 Pull-request: https://github.com/SerenityOS/serenity/pull/16522
3 changed files with 2 additions and 5 deletions
|
@ -172,7 +172,8 @@ Optional<T> DeprecatedString::to_int(TrimWhitespace trim_whitespace) const
|
|||
template Optional<i8> DeprecatedString::to_int(TrimWhitespace) const;
|
||||
template Optional<i16> DeprecatedString::to_int(TrimWhitespace) const;
|
||||
template Optional<i32> DeprecatedString::to_int(TrimWhitespace) const;
|
||||
template Optional<i64> DeprecatedString::to_int(TrimWhitespace) const;
|
||||
template Optional<long> DeprecatedString::to_int(TrimWhitespace) const;
|
||||
template Optional<long long> DeprecatedString::to_int(TrimWhitespace) const;
|
||||
|
||||
template<typename T>
|
||||
Optional<T> DeprecatedString::to_uint(TrimWhitespace trim_whitespace) const
|
||||
|
|
|
@ -157,8 +157,6 @@ template Optional<u16> convert_to_uint(StringView str, TrimWhitespace);
|
|||
template Optional<u32> convert_to_uint(StringView str, TrimWhitespace);
|
||||
template Optional<unsigned long> convert_to_uint(StringView str, TrimWhitespace);
|
||||
template Optional<unsigned long long> convert_to_uint(StringView str, TrimWhitespace);
|
||||
template Optional<long> convert_to_uint(StringView str, TrimWhitespace);
|
||||
template Optional<long long> convert_to_uint(StringView str, TrimWhitespace);
|
||||
|
||||
template<typename T>
|
||||
Optional<T> convert_to_uint_from_hex(StringView str, TrimWhitespace trim_whitespace)
|
||||
|
|
|
@ -239,8 +239,6 @@ template Optional<u16> StringView::to_uint() const;
|
|||
template Optional<u32> StringView::to_uint() const;
|
||||
template Optional<unsigned long> StringView::to_uint() const;
|
||||
template Optional<unsigned long long> StringView::to_uint() const;
|
||||
template Optional<long> StringView::to_uint() const;
|
||||
template Optional<long long> StringView::to_uint() const;
|
||||
|
||||
#ifndef KERNEL
|
||||
Optional<double> StringView::to_double(TrimWhitespace trim_whitespace) const
|
||||
|
|
Loading…
Reference in a new issue