From e897cfbd148377a7e2be1816f90fafaa513babe0 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Sun, 21 Jun 2026 01:38:45 +0200 Subject: [PATCH] add FunctionBase::trigger_htmx_event() with a std::wstring parameter --- winixd/functions/functionbase.cpp | 6 ++++++ winixd/functions/functionbase.h | 1 + 2 files changed, 7 insertions(+) diff --git a/winixd/functions/functionbase.cpp b/winixd/functions/functionbase.cpp index 113e35f..59ccb7b 100644 --- a/winixd/functions/functionbase.cpp +++ b/winixd/functions/functionbase.cpp @@ -1164,6 +1164,12 @@ void FunctionBase::trigger_htmx_event(const wchar_t * event_name, const wchar_t } +void FunctionBase::trigger_htmx_event(const wchar_t * event_name, const std::wstring & value) +{ + trigger_htmx_event(event_name, value.c_str()); +} + + /* * DEPRACATED * for backward compatibility diff --git a/winixd/functions/functionbase.h b/winixd/functions/functionbase.h index e3359d0..f6a5651 100644 --- a/winixd/functions/functionbase.h +++ b/winixd/functions/functionbase.h @@ -243,6 +243,7 @@ public: virtual void trigger_htmx_event(const wchar_t * event_name, int value); virtual void trigger_htmx_event(const wchar_t * event_name, long value); virtual void trigger_htmx_event(const wchar_t * event_name, const wchar_t * value); + virtual void trigger_htmx_event(const wchar_t * event_name, const std::wstring & value);