mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
removed c99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30041 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
53381f6992
commit
1f6a5b28c2
3 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-03-25 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* Source/GSXibLoader.m,
|
||||
* Source/NSView.m : removed c99-isms
|
||||
|
||||
2010-03-25 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/AppKit/NSImageCell.h
|
||||
|
|
|
@ -905,6 +905,7 @@ didStartElement: (NSString *)elementName
|
|||
elementName = [element type];
|
||||
if ([@"object" isEqualToString: elementName])
|
||||
{
|
||||
GSXibElement *last;
|
||||
NSString *classname = [element attributeForKey: @"class"];
|
||||
Class c = [self classForClassName: classname];
|
||||
id o, r;
|
||||
|
@ -935,7 +936,7 @@ didStartElement: (NSString *)elementName
|
|||
}
|
||||
|
||||
// push
|
||||
GSXibElement *last = currentElement;
|
||||
last = currentElement;
|
||||
currentElement = element;
|
||||
|
||||
// Create instance.
|
||||
|
|
|
@ -2773,10 +2773,12 @@ in the main thread.
|
|||
*/
|
||||
- (void) setNeedsDisplayInRect: (NSRect)invalidRect
|
||||
{
|
||||
NSValue *v;
|
||||
|
||||
if (NSIsEmptyRect(invalidRect))
|
||||
return; // avoid unnecessary work when rectangle is empty
|
||||
|
||||
NSValue *v = [[NSValue alloc]
|
||||
v = [[NSValue alloc]
|
||||
initWithBytes: &invalidRect
|
||||
objCType: @encode(NSRect)];
|
||||
|
||||
|
|
Loading…
Reference in a new issue