GetBuf -> GetBuffer

This commit is contained in:
Glenn Maynard
2006-09-18 21:46:39 +00:00
parent 18cdf9fca3
commit 8ad2856209
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -322,7 +322,7 @@ RString ConvertWstringToCodepage( wstring s, int iCodePage )
RString ret;
WideCharToMultiByte( CP_ACP, 0, s.data(), s.size(),
ret.GetBuf( iBytes ), iBytes, NULL, FALSE );
ret.GetBuffer( iBytes ), iBytes, NULL, FALSE );
ret.RelBuf( iBytes );
return ret;
@@ -1777,7 +1777,7 @@ RString Capitalize( const RString &s )
return RString();
RString s2 = s;
char *pBuf = s2.GetBuf();
char *pBuf = s2.GetBuffer();
UnicodeDoUpper( pBuf, s2.size(), g_UpperCase );
s2.ReleaseBuffer();
@@ -21,7 +21,7 @@ bool GetFileVersion( RString sFile, RString &sOut )
RString VersionBuffer( iSize, ' ' );
/* Also VC6: */
if( !GetFileVersionInfo( const_cast<char *>(sFile.c_str()), NULL, iSize, VersionBuffer.GetBuf() ) )
if( !GetFileVersionInfo( const_cast<char *>(sFile.c_str()), NULL, iSize, VersionBuffer.GetBuffer() ) )
break;
WORD *iTrans;