mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 12:50:59 +00:00
Explicitly encode/decode enumerated types as 'int' which is what all
the existing archives use (even if it is incorrect as in many cases the types are actually 'unsigned int') git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31785 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
74c604cbb0
commit
b854f2da8a
12 changed files with 59 additions and 36 deletions
|
@ -5124,7 +5124,7 @@ current key view.<br />
|
|||
|
||||
[aCoder encodeRect: [[self contentView] frame]];
|
||||
[aCoder encodeValueOfObjCType: @encode(unsigned) at: &_styleMask];
|
||||
[aCoder encodeValueOfObjCType: @encode(NSBackingStoreType) at: &_backingType];
|
||||
[aCoder encodeValueOfObjCType: @encode(int) at: &_backingType];
|
||||
|
||||
[aCoder encodePoint: NSMakePoint(NSMinX([self frame]), NSMaxY([self frame]))];
|
||||
[aCoder encodeObject: _contentView];
|
||||
|
@ -5191,7 +5191,7 @@ current key view.<br />
|
|||
aRect = [aDecoder decodeRect];
|
||||
[aDecoder decodeValueOfObjCType: @encode(unsigned)
|
||||
at: &aStyle];
|
||||
[aDecoder decodeValueOfObjCType: @encode(NSBackingStoreType)
|
||||
[aDecoder decodeValueOfObjCType: @encode(int)
|
||||
at: &aBacking];
|
||||
|
||||
// call the designated initializer....
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue