ne more static analyser fix, this time in NSImageView.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32478 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-03-06 23:11:03 +00:00
parent eb6d527983
commit fcfa7dafb4
2 changed files with 10 additions and 9 deletions

View file

@ -7,6 +7,7 @@
* Source/NSDataLink.m: Correct the init methods to return a
retained object.
* Source/NSAnimation.m: Implement the copy and coding methods.
* Source/NSImageView.m (-cut:): Use the correct copy method.
Fixed issues spotted by the static code analysis.
2011-03-05 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -180,15 +180,6 @@ static Class imageCellClass;
[self setImage: nil];
}
- (void) cut: (id)sender
{
if (_allowsCutCopyPaste)
{
[self copy];
[self setImage: nil];
}
}
- (void) copy: (id)sender
{
if (_allowsCutCopyPaste)
@ -208,6 +199,15 @@ static Class imageCellClass;
}
}
- (void) cut: (id)sender
{
if (_allowsCutCopyPaste)
{
[self copy: sender];
[self setImage: nil];
}
}
- (void) paste: (id)sender
{
if (_allowsCutCopyPaste)