mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:17:39 +00:00
First batch of corrections based on David's static analysis.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31337 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
26fcda321b
commit
d08b23d9b0
15 changed files with 151 additions and 73 deletions
|
@ -1581,22 +1581,36 @@ NSString *GSMovableToolbarItemPboardType = @"GSMovableToolbarItemPboardType";
|
|||
{
|
||||
NSToolbarItem *new = [[NSToolbarItem allocWithZone: zone]
|
||||
initWithItemIdentifier: _itemIdentifier];
|
||||
NSString *toolTip;
|
||||
NSImage *image;
|
||||
NSString *label;
|
||||
NSMenuItem *item;
|
||||
|
||||
// Copy all items individually...
|
||||
[new setTarget: [self target]];
|
||||
[new setAction: [self action]];
|
||||
[new setToolTip: [[self toolTip] copyWithZone: zone]];
|
||||
|
||||
toolTip = [[self toolTip] copyWithZone: zone];
|
||||
[new setToolTip: toolTip];
|
||||
RELEASE(toolTip);
|
||||
[new setTag: [self tag]];
|
||||
[new setImage: [[self image] copyWithZone: zone]];
|
||||
image = [[self image] copyWithZone: zone];
|
||||
[new setImage: image];
|
||||
RELEASE(image);
|
||||
[new setEnabled: [self isEnabled]];
|
||||
[new setPaletteLabel: [[self paletteLabel] copyWithZone: zone]];
|
||||
[new setLabel: [[self label] copyWithZone: zone]];
|
||||
label = [[self paletteLabel] copyWithZone: zone];
|
||||
[new setPaletteLabel: label];
|
||||
RELEASE(label);
|
||||
label = [[self label] copyWithZone: zone];
|
||||
[new setLabel: label];
|
||||
RELEASE(label);
|
||||
[new setMinSize: [self minSize]];
|
||||
[new setMaxSize: [self maxSize]];
|
||||
[new setAutovalidates: [self autovalidates]];
|
||||
[new setVisibilityPriority: [self visibilityPriority]];
|
||||
[new setMenuFormRepresentation: [[self menuFormRepresentation]
|
||||
copyWithZone: zone]];
|
||||
item = [[self menuFormRepresentation] copyWithZone: zone];
|
||||
[new setMenuFormRepresentation: item];
|
||||
RELEASE(item);
|
||||
|
||||
if ([self view] != nil)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue