Ignore:
Timestamp:
Mar 28, 2007, 10:55:14 AM (18 years ago)
Author:
イグトランス (egtra)
Message:

Stringのデフォルトコンストラクタでもメモリ確保するように戻す、api_imm.sbpの修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/String.ab

    r192 r193  
    2121
    2222    Sub String()
    23         Chars = 0
     23        Chars = _System_malloc(SizeOf (StrChar)) '0
     24        Chars[0] = 0
    2425        m_Length = 0
    2526    End Sub
     
    304305    End Function
    305306Private
    306     Static Const Function ConcatStrChar(text1 As *StrChar, text1Length As Long, text2 As *StrChar, text2Length As Long) As String
     307    Static Function ConcatStrChar(text1 As *StrChar, text1Length As Long, text2 As *StrChar, text2Length As Long) As String
    307308        With ConcatStrChar
    308309            .AllocStringBuffer(text1Length + text2Length)
Note: See TracChangeset for help on using the changeset viewer.