1
0
Fork 0

Messages: Rename IEBase variable to aIEBase to make room for a class

This commit is contained in:
Holger Hans Peter Freyther 2010-11-27 13:34:04 +01:00
parent c214878730
commit 117b78df17
1 changed files with 4 additions and 4 deletions

View File

@ -41,11 +41,11 @@ Object subclass: IEMessage [
yourself
]
IEMessage class >> findIE: type with: data from: IEBase [
IEMessage class >> findIE: type with: data from: aIEBase [
"TODO: This needs to move some basic dispatch class"
"Find the IE that handles the type specified"
IEBase allSubclassesDo: [:each |
aIEBase allSubclassesDo: [:each |
each elementId = type
ifTrue: [
^ each parseFrom: data.
@ -55,7 +55,7 @@ Object subclass: IEMessage [
^ Exception signal: 'Unsupported IE type: ', type asString.
]
IEMessage class >> decode: aByteArray with: IEBase [
IEMessage class >> decode: aByteArray with: aIEBase [
| msg dat |
msg := IEMessage initWith: (aByteArray at: 1).
@ -67,7 +67,7 @@ Object subclass: IEMessage [
data := dat copyFrom: 1 to: 2 + size.
dat := dat copyFrom: 3 + size.
msg addIe: (self findIE: type with: data from: IEBase).
msg addIe: (self findIE: type with: data from: aIEBase).
].
^ msg