perfapps/memspyui/ui/avkon/src/MemSpyUiUtils.cpp
changeset 53 819e59dfc032
parent 51 b048e15729d6
equal deleted inserted replaced
52:36d60d12b4af 53:819e59dfc032
    61         _LIT( KMemSpyItemValueError, "Error: %d" );
    61         _LIT( KMemSpyItemValueError, "Error: %d" );
    62         aBuf.Format( KMemSpyItemValueError, aError );
    62         aBuf.Format( KMemSpyItemValueError, aError );
    63         }
    63         }
    64     }
    64     }
    65 
    65 
    66 HBufC* MemSpyUiUtils::FormatItem( const TDesC& aCaption )
    66 HBufC* MemSpyUiUtils::FormatItemLC( const TDesC& aCaption )
    67 	{
    67 	{
    68 	HBufC* retBuf = HBufC::NewL( 32 );
    68 	HBufC* retBuf = HBufC::NewLC( 32 );
    69 	TPtr pRetBuf( retBuf->Des() );
    69 	TPtr pRetBuf( retBuf->Des() );
    70 	pRetBuf.Zero();
    70 	pRetBuf.Zero();
    71 	pRetBuf.Append( _L("\t") );
    71 	pRetBuf.Append( _L("\t") );
    72 	pRetBuf.Append( aCaption );
    72 	pRetBuf.Append( aCaption );
    73 	return retBuf;
    73 	return retBuf;