diff options
author | George Hazan <george.hazan@gmail.com> | 2016-02-25 13:47:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-02-25 13:47:23 +0000 |
commit | 8bf03133314064ec052873b01647c79b69a5b681 (patch) | |
tree | 3fa208ebec566236558fcbead39709ba44ac40fe /plugins/Quotes/src/stdafx.h | |
parent | 42095fb5cb7228f9dfb94965988029fd7f47b793 (diff) |
more shit removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@16336 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/stdafx.h')
-rw-r--r-- | plugins/Quotes/src/stdafx.h | 50 |
1 files changed, 2 insertions, 48 deletions
diff --git a/plugins/Quotes/src/stdafx.h b/plugins/Quotes/src/stdafx.h index bd1842fbd6..48d99a70b3 100644 --- a/plugins/Quotes/src/stdafx.h +++ b/plugins/Quotes/src/stdafx.h @@ -54,8 +54,7 @@ inline std::string quotes_t2a(const TCHAR* t) {
std::string s;
char* p = mir_t2a(t);
- if (p)
- {
+ if (p) {
s = p;
mir_free(p);
}
@@ -66,19 +65,13 @@ inline tstring quotes_a2t(const char* s) {
tstring t;
TCHAR* p = mir_a2t(s);
- if (p)
- {
+ if (p) {
t = p;
mir_free(p);
}
return t;
}
-inline int quotes_stricmp(LPCTSTR p1, LPCTSTR p2)
-{
- return mir_tstrcmpi(p1, p2);
-}
-
#include "resource.h"
#include "version.h"
#include "IconLib.h"
@@ -122,43 +115,4 @@ inline int quotes_stricmp(LPCTSTR p1, LPCTSTR p2) #include "IXMLEngine.h"
#include "XMLEngineMI.h"
-namespace detail
-{
- template<typename T, typename TD> struct safe_string_impl
- {
- typedef T* PTR;
-
- safe_string_impl(PTR p) : m_p(p){}
- ~safe_string_impl(){ TD::dealloc(m_p); }
-
- PTR m_p;
- };
-
- template<typename T> struct MirandaFree
- {
- static void dealloc(T* p){ mir_free(p); }
- };
-
- template<typename T> struct OwnerFree
- {
- static void dealloc(T* p){ ::free(p); }
- };
-}
-
-template<typename T> struct mir_safe_string : public detail::safe_string_impl < T, detail::MirandaFree<T> >
-{
- mir_safe_string(PTR p) : detail::safe_string_impl<T, detail::MirandaFree<T>>(p){}
-};
-
-template<typename T> struct safe_string : public detail::safe_string_impl < T, detail::OwnerFree<T> >
-{
- safe_string(PTR p) : detail::safe_string_impl<T, detail::OwnerFree<T>>(p){}
-};
-
extern HINSTANCE g_hInstance;
-
-// #ifdef MIRANDA_VER
-// #undef MIRANDA_VER
-// #endif
-
-// TODO: reference additional headers your program requires here
|