mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:27:34 +00:00
Ladybird/Qt: Replace the QString-from-AK helpers with a single method
There's no need for 2 overloads for String and DeprecatedString, we can just use a StringView. This also avoids some cases of needlessly allocating a DeprecatedString from a StringView when calling this method.
This commit is contained in:
parent
4d5d282e6a
commit
1aedb0ae5a
8 changed files with 21 additions and 27 deletions
|
@ -9,9 +9,9 @@
|
|||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/Error.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <QString>
|
||||
|
||||
AK::DeprecatedString ak_deprecated_string_from_qstring(QString const&);
|
||||
ErrorOr<String> ak_string_from_qstring(QString const&);
|
||||
QString qstring_from_ak_deprecated_string(AK::DeprecatedString const&);
|
||||
QString qstring_from_ak_string(String const&);
|
||||
QString qstring_from_ak_string(StringView);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue