From 2e4abd268c71f15bcf73c49a5005f128ffd8ee96 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 16 May 2013 15:08:49 +0000 Subject: shortened typedefs for string buffers: MCBuf -> mir_ptr MTBuf -> mir_ptr MWBuf -> mir_ptr git-svn-id: http://svn.miranda-ng.org/main/trunk@4680 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_system_cpp.h | 4 ++++ include/m_utils.h | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index 600eefe01f..933b416e85 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -53,6 +53,10 @@ public: __inline operator INT_PTR() const { return (INT_PTR)data; } }; +typedef mir_ptr MCBuf; +typedef mir_ptr MTBuf; +typedef mir_ptr MWBuf; + /////////////////////////////////////////////////////////////////////////////// // mir_cslock - simple locker for the critical sections diff --git a/include/m_utils.h b/include/m_utils.h index 6e418fdc6c..c738cb924e 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -428,17 +428,17 @@ __forceinline TCHAR* Utils_ReplaceVarsT(const TCHAR *szData) { #include "m_system_cpp.h" #endif - struct VARS : public mir_ptr + struct VARS : public MCBuf { __forceinline VARS(const char *str) : - mir_ptr( Utils_ReplaceVars(str)) + MCBuf( Utils_ReplaceVars(str)) {} }; - struct VARST : public mir_ptr + struct VARST : public MTBuf { __forceinline VARST(const TCHAR *str) : - mir_ptr( Utils_ReplaceVarsT(str)) + MTBuf( Utils_ReplaceVarsT(str)) {} }; #endif -- cgit v1.2.3