m2ua: Avoid using the the system >>#copyFrom: message
>>#copyFrom: is clashing with the system message and when porting it will be translated to >>#copyFrom:to: and this is not the right thing to do.
This commit is contained in:
parent
9278fb997c
commit
a1b4166cb7
|
@ -57,7 +57,7 @@ struct m2ua_parameter_hdr {
|
|||
yourself.
|
||||
]
|
||||
|
||||
M2UAMSG class >> copyFrom: aMsg [
|
||||
M2UAMSG class >> copyFromOtherMessage: aMsg [
|
||||
<category: 'parsing'>
|
||||
^ self new
|
||||
msgClass: aMsg msgClass;
|
||||
|
@ -85,7 +85,7 @@ struct m2ua_parameter_hdr {
|
|||
ifTrue:
|
||||
[msgClass allSubclassesDo: [:class |
|
||||
class messageTag = rawMsg msgType
|
||||
ifTrue: [^class copyFrom: rawMsg]]]].
|
||||
ifTrue: [^class copyFromOtherMessage: rawMsg]]]].
|
||||
|
||||
^self error: ('Unknown message class (<1p>) or message type (<2p>)'
|
||||
expandMacrosWith: rawMsg msgClass
|
||||
|
|
Reference in New Issue