From 30a9e9e370aa9aff9f64158aa0942b471621a7ef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Sep 2022 18:23:52 +0300 Subject: Utils_ClipboardCopy - system-wide helper for writing text to clipboard --- protocols/JabberG/src/stdafx.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG/src/stdafx.h') diff --git a/protocols/JabberG/src/stdafx.h b/protocols/JabberG/src/stdafx.h index dc0dc76647..67eaad3244 100644 --- a/protocols/JabberG/src/stdafx.h +++ b/protocols/JabberG/src/stdafx.h @@ -682,7 +682,7 @@ char* JabberStripJid(const char *jid, char *dest, size_t destLen); int JabberGetPacketID(const char*); char* JabberId2string(int id); -__inline int JabberGetPacketID(const TiXmlElement *n) +__forceinline int JabberGetPacketID(const TiXmlElement *n) { return JabberGetPacketID(XmlGetAttr(n, "id")); } @@ -694,12 +694,13 @@ wchar_t* JabberStrFixLines(const wchar_t *str); wchar_t* JabberErrorStr(int errorCode); CMStringW JabberErrorMsg(const TiXmlElement *errorNode, int *errorCode = nullptr); -void JabberCopyText(HWND hwnd, const char *text); -void JabberCopyText(HWND hwnd, const wchar_t *text); - const wchar_t *JabberStrIStr(const wchar_t *str, const wchar_t *substr); CJabberProto* JabberChooseInstance(bool bIsLink=false); +__forceinline void Utils_ClipboardCopy(const char *p) +{ Utils_ClipboardCopy(Utf2T(p)); +} + bool JabberReadXep203delay(const TiXmlElement *node, time_t &msgTime); void SetWindowTextUtf(HWND hwndDlg, const char *szValue); -- cgit v1.2.3