1
0
Fork 0

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:
Holger Hans Peter Freyther 2013-06-17 15:37:41 +02:00
parent 9278fb997c
commit a1b4166cb7
1 changed files with 2 additions and 2 deletions

View File

@ -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