diff options
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
|