mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:00:37 +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
|
@ -514,8 +514,8 @@
|
|||
{
|
||||
[aCoder encodeObject: _cell];
|
||||
[aCoder encodeSize: _offsets];
|
||||
[aCoder encodeValueOfObjCType: @encode(NSBorderType) at: &_border_type];
|
||||
[aCoder encodeValueOfObjCType: @encode(NSTitlePosition) at: &_title_position];
|
||||
[aCoder encodeValueOfObjCType: @encode(int) at: &_border_type];
|
||||
[aCoder encodeValueOfObjCType: @encode(int) at: &_title_position];
|
||||
// NB: the content view is our (only) subview, so it is already
|
||||
// encoded by NSView.
|
||||
}
|
||||
|
@ -564,9 +564,9 @@
|
|||
{
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_cell];
|
||||
_offsets = [aDecoder decodeSize];
|
||||
[aDecoder decodeValueOfObjCType: @encode(NSBorderType)
|
||||
[aDecoder decodeValueOfObjCType: @encode(int)
|
||||
at: &_border_type];
|
||||
[aDecoder decodeValueOfObjCType: @encode(NSTitlePosition)
|
||||
[aDecoder decodeValueOfObjCType: @encode(int)
|
||||
at: &_title_position];
|
||||
|
||||
// The content view is our only sub_view
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue