mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibSQL: Clean up code style and remove unused includes
No functional changes.
This commit is contained in:
parent
8992ff5aeb
commit
a99c1297e0
Notes:
sideshowbarker
2024-07-17 07:25:39 +09:00
Author: https://github.com/gmta
Commit: a99c1297e0
Pull-request: https://github.com/SerenityOS/serenity/pull/18476
Reviewed-by: https://github.com/trflynn89 ✅
14 changed files with 43 additions and 96 deletions
|
@ -36,7 +36,7 @@ struct TupleElementDescriptor {
|
|||
|
||||
size_t length() const
|
||||
{
|
||||
return (sizeof(u32) + name.length()) + 2 * sizeof(u8);
|
||||
return sizeof(u32) + name.length() + 2 * sizeof(u8);
|
||||
}
|
||||
|
||||
DeprecatedString to_deprecated_string() const
|
||||
|
@ -85,18 +85,16 @@ public:
|
|||
size_t length() const
|
||||
{
|
||||
size_t len = sizeof(u32);
|
||||
for (auto& element : *this) {
|
||||
for (auto& element : *this)
|
||||
len += element.length();
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
||||
DeprecatedString to_deprecated_string() const
|
||||
{
|
||||
Vector<DeprecatedString> elements;
|
||||
for (auto& element : *this) {
|
||||
for (auto& element : *this)
|
||||
elements.append(element.to_deprecated_string());
|
||||
}
|
||||
return DeprecatedString::formatted("[\n{}\n]", DeprecatedString::join('\n', elements));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue