diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-04 18:02:33 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-06 08:54:33 +0100 |
commit | 6e19ab2bbce0b113b628e6f8e9b5c0640053933e (patch) | |
tree | 372d21b2f5dcff112f5d0089559c6af5798680d4 /Userland/Libraries/LibSQL/SQLClient.cpp | |
parent | f74251606d74b504a1379ebb893fdb5529054ea5 (diff) | |
download | serenity-6e19ab2bbce0b113b628e6f8e9b5c0640053933e.zip |
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null
state), and while it's going to use UTF-8, the name UTF8String is a
mouthful - so let's free up the String name by renaming the existing
class.
Making the old one have an annoying name will hopefully also help with
quick adoption :^)
Diffstat (limited to 'Userland/Libraries/LibSQL/SQLClient.cpp')
-rw-r--r-- | Userland/Libraries/LibSQL/SQLClient.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibSQL/SQLClient.cpp b/Userland/Libraries/LibSQL/SQLClient.cpp index f60157256d..61a0a8e461 100644 --- a/Userland/Libraries/LibSQL/SQLClient.cpp +++ b/Userland/Libraries/LibSQL/SQLClient.cpp @@ -9,7 +9,7 @@ namespace SQL { -void SQLClient::connected(int connection_id, String const& connected_to_database) +void SQLClient::connected(int connection_id, DeprecatedString const& connected_to_database) { if (on_connected) on_connected(connection_id, connected_to_database); @@ -21,7 +21,7 @@ void SQLClient::disconnected(int connection_id) on_disconnected(connection_id); } -void SQLClient::connection_error(int connection_id, int code, String const& message) +void SQLClient::connection_error(int connection_id, int code, DeprecatedString const& message) { if (on_connection_error) on_connection_error(connection_id, code, message); @@ -29,7 +29,7 @@ void SQLClient::connection_error(int connection_id, int code, String const& mess warnln("Connection error for connection_id {}: {} ({})", connection_id, message, code); } -void SQLClient::execution_error(int statement_id, int code, String const& message) +void SQLClient::execution_error(int statement_id, int code, DeprecatedString const& message) { if (on_execution_error) on_execution_error(statement_id, code, message); @@ -45,7 +45,7 @@ void SQLClient::execution_success(int statement_id, bool has_results, int create outln("{} row(s) created, {} updated, {} deleted", created, updated, deleted); } -void SQLClient::next_result(int statement_id, Vector<String> const& row) +void SQLClient::next_result(int statement_id, Vector<DeprecatedString> const& row) { if (on_next_result) { on_next_result(statement_id, row); |