diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-14 16:22:13 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-14 16:22:13 +0000 |
commit | d5d023f683b23fe26ddea93738cb721d532804f0 (patch) | |
tree | 21e7398686c7a5d1604d58bfb71ca4329c84be66 /protocols/JabberG/jabber_console.cpp | |
parent | e58823d961a630eb62e60d2ccb443761ba5f1704 (diff) |
another portion of "#ifsef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@411 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/jabber_console.cpp')
-rw-r--r-- | protocols/JabberG/jabber_console.cpp | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/protocols/JabberG/jabber_console.cpp b/protocols/JabberG/jabber_console.cpp index 9d750f6425..0f728b25ec 100644 --- a/protocols/JabberG/jabber_console.cpp +++ b/protocols/JabberG/jabber_console.cpp @@ -53,13 +53,8 @@ struct StringBuf };
static void sttAppendBufRaw(StringBuf *buf, const char *str);
-
-#ifdef UNICODE
- static void sttAppendBufW(StringBuf *buf, const WCHAR *str);
- #define sttAppendBufT(a,b) (sttAppendBufW((a),(b)))
-#else
- #define sttAppendBufT(a,b) (sttAppendBufA((a),(b)))
-#endif
+static void sttAppendBufW(StringBuf *buf, const WCHAR *str);
+#define sttAppendBufT(a,b) (sttAppendBufW((a),(b)))
static void sttEmptyBuf(StringBuf *buf);
#define RTF_HEADER \
@@ -186,7 +181,6 @@ static void sttAppendBufRaw(StringBuf *buf, const char *str) buf->offset += length;
}
-#ifdef UNICODE
static void sttAppendBufW(StringBuf *buf, const WCHAR *str)
{
char tmp[32];
@@ -214,38 +208,6 @@ static void sttAppendBufW(StringBuf *buf, const WCHAR *str) }
sttAppendBufRaw(buf, "}");
}
-#else
- static void sttAppendBufA(StringBuf *buf, const char *str)
-
- {
- char tmp[32];
-
- if (!str) return;
-
- for (const char *p = str; *p; ++p)
-
- {
- if ((*p == '\\') || (*p == '{') || (*p == '}'))
- {
- tmp[0] = '\\';
- tmp[1] = (char)*p;
- tmp[2] = 0;
- } else
-
- {
- tmp[0] = (char)*p;
- tmp[1] = 0;
-
-
-
- }
- sttAppendBufRaw(buf, tmp);
- }
-
- }
-
- #define sttAppendBufW sttAppendBufA
-#endif
static void sttEmptyBuf(StringBuf *buf)
{
|