diff options
| author | Marco Bubke <[email protected]> | 2024-10-23 07:12:24 +0200 |
|---|---|---|
| committer | Marco Bubke <[email protected]> | 2024-10-25 15:31:21 +0000 |
| commit | cec3838fc460eb3b675db229fe785fc53c8f4f61 (patch) | |
| tree | 3dae4fef4751e14553885b18a00c7e4c074e0a43 /src/libs/sqlite/sqliteexception.cpp | |
| parent | b2052cf8074d58a0b4054f5a006af69bf90486d4 (diff) | |
NanoTrace: Remove user literal workaround
Since C++ 20 consteval we can enforce compile time evaluation. So the
workaround is not anymore needed.
Change-Id: Icfe254431e2d1c364846107474bab911efbf5641
Reviewed-by: Thomas Hartmann <[email protected]>
Diffstat (limited to 'src/libs/sqlite/sqliteexception.cpp')
| -rw-r--r-- | src/libs/sqlite/sqliteexception.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/sqlite/sqliteexception.cpp b/src/libs/sqlite/sqliteexception.cpp index bb4a474adb0..5a54cf94b8f 100644 --- a/src/libs/sqlite/sqliteexception.cpp +++ b/src/libs/sqlite/sqliteexception.cpp @@ -38,7 +38,7 @@ void ExceptionWithMessage::printWarning() const StatementIsBusy::StatementIsBusy(Utils::SmallString &&sqliteErrorMessage) : ExceptionWithMessage{std::move(sqliteErrorMessage)} { - sqliteHighLevelCategory().threadEvent("StatementIsBusy"_t, + sqliteHighLevelCategory().threadEvent("StatementIsBusy", keyValue("error message", std::string_view{what()})); } @@ -55,7 +55,7 @@ const char *DatabaseIsBusy::what() const noexcept StatementHasError::StatementHasError(Utils::SmallString &&sqliteErrorMessage) : ExceptionWithMessage{std::move(sqliteErrorMessage)} { - sqliteHighLevelCategory().threadEvent("StatementHasError"_t, + sqliteHighLevelCategory().threadEvent("StatementHasError", keyValue("error message", std::string_view{what()})); } |
