[FRAMEDYN]

Reduce Len variable scope * 2

svn path=/trunk/; revision=59970
This commit is contained in:
Pierre Schweitzer 2013-09-03 06:20:51 +00:00
parent 2d2669c682
commit 262e99ecd4

View file

@ -133,7 +133,6 @@ CHString::CHString(WCHAR ch, int nRepeat) throw (CHeap_Exception)
*/
CHString::CHString(LPCWSTR lpsz) throw (CHeap_Exception)
{
int Len;
// Allow null initialize, in case something goes wrong
m_pchData = afxPchNil;
@ -141,7 +140,7 @@ CHString::CHString(LPCWSTR lpsz) throw (CHeap_Exception)
if (lpsz != 0)
{
// Get its length
Len = SafeStrlen(lpsz);
int Len = SafeStrlen(lpsz);
// Then, allocate a big enough buffer and copy string
// Note that here, we don't null terminate the string...
if (Len)
@ -174,7 +173,6 @@ CHString::CHString(LPCWSTR lpch, int nLength) throw (CHeap_Exception)
*/
CHString::CHString(LPCSTR lpsz) throw (CHeap_Exception)
{
int Len;
// Allow null initialize, in case something goes wrong
m_pchData = afxPchNil;
@ -182,7 +180,7 @@ CHString::CHString(LPCSTR lpsz) throw (CHeap_Exception)
if (lpsz != 0)
{
// Get its length
Len = strlen(lpsz);
int Len = strlen(lpsz);
if (Len)
{
// Allocate and convert the string