diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-31 21:02:26 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-31 21:02:26 +0000 |
commit | e48bae4c6ccf1003916b3960f30816ce8aaa955b (patch) | |
tree | a69a0e638db00a3f2af4581a6440178bb9893971 /include | |
parent | 6cb654fab7272163d2330cf41de542e1ccba71c8 (diff) |
- additional operator LPARAM() for _A2T & _T2A;
- we don't need StrConvA anymore;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@13952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/m_core.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/m_core.h b/include/m_core.h index 5e431808a7..efcde5e1c2 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -585,9 +585,8 @@ public: __forceinline _A2T(const char* s, int cp) : buf(mir_a2t_cp(s, cp)) {}
~_A2T() { mir_free(buf); }
- __forceinline operator TCHAR*() const
- { return buf;
- }
+ __forceinline operator LPARAM() const { return (LPARAM)buf; }
+ __forceinline operator TCHAR*() const { return buf; }
};
class _T2A
@@ -599,9 +598,8 @@ public: __forceinline _T2A(const TCHAR* s, int cp) : buf(mir_t2a_cp(s, cp)) {}
__forceinline ~_T2A() { mir_free(buf); }
- __forceinline operator char*() const
- { return buf;
- }
+ __forceinline operator LPARAM() const { return (LPARAM)buf; }
+ __forceinline operator char*() const { return buf; }
};
#endif
|