diff --git a/Source/Common/std string.cpp b/Source/Common/std string.cpp index 927e18bda..694716042 100644 --- a/Source/Common/std string.cpp +++ b/Source/Common/std string.cpp @@ -1,6 +1,6 @@ #include "stdafx.h" -void stdstr::InternalFormat(const TCHAR * strFormat, va_list & args) +void stdstr::ArgFormat(const TCHAR * strFormat, va_list & args) { if (strFormat != NULL) { // declare buffer (default max buffer size = 32k) @@ -41,7 +41,7 @@ void stdstr::Format(const TCHAR * strFormat, ...) { va_list args; va_start(args, strFormat); - InternalFormat(strFormat,args); + ArgFormat(strFormat,args); va_end(args); } diff --git a/Source/Common/std string.h b/Source/Common/std string.h index 073626fab..ea1be7baa 100644 --- a/Source/Common/std string.h +++ b/Source/Common/std string.h @@ -22,8 +22,6 @@ typedef std::vector strvector; class stdstr: public tstring { -protected: - void InternalFormat(const TCHAR * strFormat, va_list & args); public: stdstr(); stdstr( const tstring & str ); @@ -32,6 +30,8 @@ public: // stdstr( const TCHAR * strBuff, size_t buffSize); void Format(const TCHAR * strFormat, ...); + void ArgFormat(const TCHAR * strFormat, va_list & args); + //stdstr& operator=(const TCHAR * rhs); void replace(const TCHAR search, const TCHAR replace ); void replace(const TCHAR * search, const TCHAR replace ); @@ -53,7 +53,7 @@ public: { va_list args; va_start(args, strFormat); - InternalFormat(strFormat,args); + ArgFormat(strFormat,args); va_end(args); } };