From a3c195a98a39db001971e5991ac9c423a84841aa Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 20 Jun 2018 14:24:43 +0200 Subject: [PATCH] Stop using <> parentheses to avoid XML/HTML markup Transifex treats strings enclosed in <> as HTML. --- include/WinStd/ETW.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/WinStd/ETW.h b/include/WinStd/ETW.h index 72c65905..601d1d32 100644 --- a/include/WinStd/ETW.h +++ b/include/WinStd/ETW.h @@ -166,7 +166,7 @@ namespace winstd /// /// Construct class pointing to a string. /// - /// \param[in] data Event data. When `NULL`, the event data will be `""`. + /// \param[in] data Event data. When `NULL`, the event data will be `"(null)"`. /// /// \note This class saves a reference to the data only. Therefore, data must be kept available. /// @@ -176,7 +176,7 @@ namespace winstd EventDataDescCreate(this, data, (ULONG)((strlen(data) + 1) * sizeof(*data))); else { // Writing NULL pointer with 0B length causes trouble in Event Viewer: message template string is displayed only, parameters are not rendered. - static const char null[] = ""; + static const char null[] = "(null)"; EventDataDescCreate(this, null, sizeof(null)); } } @@ -185,7 +185,7 @@ namespace winstd /// /// Construct class pointing to a wide string. /// - /// \param[in] data Event data. When `NULL`, the event data will be `""`. + /// \param[in] data Event data. When `NULL`, the event data will be `"(null)"`. /// /// \note This class saves a reference to the data only. Therefore, data must be kept available. /// @@ -195,7 +195,7 @@ namespace winstd EventDataDescCreate(this, data, (ULONG)((wcslen(data) + 1) * sizeof(*data))); else { // Writing NULL pointer with 0B length causes trouble in Event Viewer: message template string is displayed only, parameters are not rendered. - static const wchar_t null[] = L""; + static const wchar_t null[] = L"(null)"; EventDataDescCreate(this, null, sizeof(null)); } }