summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-05-13 14:23:13 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-05-13 14:23:13 +0300
commitc7d065645853b2e614e8557fa01057efaf5e6517 (patch)
tree6b5233ed788e31014e868c007ccb469ca4d64e60 /plugins/AutoShutdown
parent831bffd63776f4ffe82245cadf2b95c48cd44d38 (diff)
DbEvent_GetTextA: unused function removed
Diffstat (limited to 'plugins/AutoShutdown')
-rw-r--r--plugins/AutoShutdown/src/watcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/AutoShutdown/src/watcher.cpp b/plugins/AutoShutdown/src/watcher.cpp
index d290a65c78..57ee51f9f4 100644
--- a/plugins/AutoShutdown/src/watcher.cpp
+++ b/plugins/AutoShutdown/src/watcher.cpp
@@ -72,7 +72,7 @@ static int MsgEventAdded(WPARAM, LPARAM hDbEvent)
DBVARIANT dbv;
if (!g_plugin.getWString("Message", &dbv)) {
ltrimw(rtrimw(dbv.pwszVal));
- ptrW wszMsg(DbEvent_GetTextW(&dbei));
+ ptrW wszMsg(dbei.getText());
if (wszMsg != nullptr && wcsstr(wszMsg, dbv.pwszVal) != nullptr)
ShutdownAndStopWatcher(); /* msg with specified text recvd */
mir_free(dbv.pwszVal); /* does NULL check */