From 9b119cadd74e1343cad493e8b366e69743a620d0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 21 Dec 2014 09:49:05 +0000 Subject: Quotes: changed warning level to w4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Quotes/src/stdafx.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins/Quotes/src/stdafx.h') 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 struct safe_string_impl + template 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 struct MirandaFree { - static void dealloc(T* p){mir_free(p);} + static void dealloc(T* p){ mir_free(p); } }; template struct OwnerFree { - static void dealloc(T* p){::free(p);} + static void dealloc(T* p){ ::free(p); } }; } -template struct mir_safe_string : public detail::safe_string_impl> +template struct mir_safe_string : public detail::safe_string_impl < T, detail::MirandaFree > { - mir_safe_string(PTR p) : detail::safe_string_impl>(p){} + mir_safe_string(PTR p) : detail::safe_string_impl>(p){} }; -template struct safe_string : public detail::safe_string_impl> +template struct safe_string : public detail::safe_string_impl < T, detail::OwnerFree > { - safe_string(PTR p) : detail::safe_string_impl>(p){} + safe_string(PTR p) : detail::safe_string_impl>(p){} }; extern HINSTANCE g_hInstance; -- cgit v1.2.3