Author: pschweitzer
Date: Tue Sep 3 06:20:51 2013
New Revision: 59970
URL:
http://svn.reactos.org/svn/reactos?rev=59970&view=rev
Log:
[FRAMEDYN]
Reduce Len variable scope * 2
Modified:
trunk/reactos/dll/win32/framedyn/chstring.cpp
Modified: trunk/reactos/dll/win32/framedyn/chstring.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/framedyn/chstrin…
==============================================================================
--- trunk/reactos/dll/win32/framedyn/chstring.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/framedyn/chstring.cpp [iso-8859-1] Tue Sep 3 06:20:51 2013
@@ -133,7 +133,6 @@
*/
CHString::CHString(LPCWSTR lpsz) throw (CHeap_Exception)
{
- int Len;
// Allow null initialize, in case something goes wrong
m_pchData = afxPchNil;
@@ -141,7 +140,7 @@
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(LPCSTR lpsz) throw (CHeap_Exception)
{
- int Len;
// Allow null initialize, in case something goes wrong
m_pchData = afxPchNil;
@@ -182,7 +180,7 @@
if (lpsz != 0)
{
// Get its length
- Len = strlen(lpsz);
+ int Len = strlen(lpsz);
if (Len)
{
// Allocate and convert the string