summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/stdafx.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-12-21 09:49:05 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-12-21 09:49:05 +0000
commit9b119cadd74e1343cad493e8b366e69743a620d0 (patch)
treee11d3923e86eb667f1a2f20e1126066e51ed73ce /plugins/Quotes/src/stdafx.h
parent1b85ad91e7aa1af9d295d399e560a2adc6d413d3 (diff)
Quotes: changed warning level to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/stdafx.h')
-rw-r--r--plugins/Quotes/src/stdafx.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/Quotes/src/stdafx.h b/plugins/Quotes/src/stdafx.h
index 59b2a17047..9e624a9556 100644
--- a/plugins/Quotes/src/stdafx.h
+++ b/plugins/Quotes/src/stdafx.h
@@ -58,7 +58,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);
@@ -70,7 +70,7 @@ inline tstring quotes_a2t(const char* s)
{
tstring t;
TCHAR* p = mir_a2t(s);
- if(p)
+ if (p)
{
t = p;
mir_free(p);
@@ -78,9 +78,9 @@ inline tstring quotes_a2t(const char* s)
return t;
}
-inline int quotes_stricmp(LPCTSTR p1,LPCTSTR p2)
+inline int quotes_stricmp(LPCTSTR p1, LPCTSTR p2)
{
- return _tcsicmp(p1,p2);
+ return _tcsicmp(p1, p2);
}
#include "resource.h"
@@ -130,35 +130,35 @@ inline int quotes_stricmp(LPCTSTR p1,LPCTSTR p2)
namespace detail
{
- template<typename T,typename TD> struct safe_string_impl
+ 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);}
+ ~safe_string_impl(){ TD::dealloc(m_p); }
PTR m_p;
};
template<typename T> struct MirandaFree
{
- static void dealloc(T* p){mir_free(p);}
+ static void dealloc(T* p){ mir_free(p); }
};
template<typename T> struct OwnerFree
{
- static void dealloc(T* p){::free(p);}
+ static void dealloc(T* p){ ::free(p); }
};
}
-template<typename T> struct mir_safe_string : public detail::safe_string_impl<T,detail::MirandaFree<T>>
+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){}
+ 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>>
+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){}
+ safe_string(PTR p) : detail::safe_string_impl<T, detail::OwnerFree<T>>(p){}
};
extern HINSTANCE g_hInstance;