Removed new GCC 3.4 warnings from Alexander Malmbergs list.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17601 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2003-09-01 18:17:52 +00:00
parent a46846708e
commit 4a0281b9c4
10 changed files with 37 additions and 12 deletions

View file

@ -1,3 +1,26 @@
2003-09-01 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSAttributedString.m
[readFromURL:options:documentAttributes:] corrected the handling
to type "text", where [NSString alloc] was missing.
* Source/NSBundleAdditions.m
Removed unused global currentVersion.
* Headers/AppKit/NSCell.h
Corrected type of method _nonAutoreleasedTypingAttributes
* Headers/AppKit/NSInputManager.h
Added protocol NSTextInput to ivar _currentClient.
* Headers/AppKit/NSTextFieldCell.h
Removed uneeded and inconsistent method declarations.
* Source/NSApplciation.m
* Source/NSBezierPath.m
* Source/NSClipView.m
* Source/NSDocumentController.m
* Source/NSInputManager.m
* Source/NSMenuItem.m
* Source/NSSavePanel.m
* Source/NSTableView.m
Removed new GCC 3.4 warnings from Alexander Malmbergs list.
2003-09-01 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBitmapImageRep.m

View file

@ -1905,7 +1905,7 @@ image.
count = [itemArray count];
for (i = 0; i < count; i++)
{
id win = [[itemArray objectAtIndex: i] target];
id win = [(NSMenuItem*)[itemArray objectAtIndex: i] target];
if ([win isKindOfClass: [NSWindow class]])
{
@ -2103,7 +2103,7 @@ image.
count = [itemArray count];
while (count-- > 0)
{
id item = [itemArray objectAtIndex: count];
NSMenuItem *item = [itemArray objectAtIndex: count];
if ([item target] == aWindow)
{
@ -2173,7 +2173,7 @@ image.
count = [itemArray count];
for (i = 0; i < count; i++)
{
id item = [itemArray objectAtIndex: i];
NSMenuItem *item = [itemArray objectAtIndex: i];
if ([item target] == aWindow)
{
@ -2262,7 +2262,7 @@ image.
count = [itemArray count];
for (i = 0; i < count; i++)
{
id item = [itemArray objectAtIndex: i];
NSMenuItem *item = [itemArray objectAtIndex: i];
if ([item target] == aWindow)
{

View file

@ -97,7 +97,7 @@ static float default_miter_limit = 10.0;
}
}
+ (id)bezierPath
+ (NSBezierPath *)bezierPath
{
return AUTORELEASE ([[NSBezierPath_concrete_class alloc] init]);
}

View file

@ -30,16 +30,15 @@
#include "AppKit/NSClipView.h"
#include "AppKit/NSCursor.h"
#include "AppKit/NSColor.h"
#include "AppKit/NSWindow.h"
#include "AppKit/NSGraphics.h"
#include "AppKit/NSTableView.h"
#include "AppKit/NSWindow.h"
#include "AppKit/PSOperators.h"
#include <math.h>
DEFINE_RINT_IF_MISSING
@class NSTableView;
/*
* Return the biggest integral (in device space) rect contained in rect.
* Conversion to/from device space is done using view.

View file

@ -31,6 +31,7 @@
#include <Foundation/NSBundle.h>
#include "AppKit/NSButtonCell.h"
#include "AppKit/NSColorPicker.h"
#include "AppKit/NSImage.h"
@implementation NSColorPicker

View file

@ -224,7 +224,7 @@ static NSDictionary *TypeInfoForName (NSArray *types, NSString *typeName)
return nil; // raise exception?
}
return [[_types objectAtIndex:0] objectForKey:NSNameKey];
return [(NSDictionary*)[_types objectAtIndex:0] objectForKey:NSNameKey];
}
- (void) addDocument: (NSDocument *)document

View file

@ -23,6 +23,7 @@
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <Foundation/NSException.h>
#include "AppKit/NSEvent.h"
#include "AppKit/NSInputManager.h"
#include "AppKit/NSInputServer.h"

View file

@ -229,7 +229,7 @@ static Class imageClass;
- (NSString*) userKeyEquivalent
{
NSString *userKeyEquivalent = [[[[NSUserDefaults standardUserDefaults]
NSString *userKeyEquivalent = [(NSDictionary*)[[[NSUserDefaults standardUserDefaults]
persistentDomainForName: NSGlobalDomain]
objectForKey: @"NSCommandKeys"]
objectForKey: _title];

View file

@ -1175,7 +1175,7 @@ selectCellWithString: (NSString*)title
// NSSavePanel browser delegate methods
//
@interface NSSavePanel (_BrowserDelegate)
- (void) browser: (id)sender
- (void) browser: (NSBrowser*)sender
createRowsForColumn: (int)column
inMatrix: (NSMatrix*)matrix;
@ -1207,7 +1207,7 @@ static int compareFilenames (id elem1, id elem2, void *context)
@implementation NSSavePanel (_BrowserDelegate)
- (void) browser: (id)sender
- (void) browser: (NSBrowser*)sender
createRowsForColumn: (int)column
inMatrix: (NSMatrix*)matrix
{

View file

@ -26,6 +26,7 @@
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <Foundation/NSAutoreleasePool.h>
#include <Foundation/NSException.h>
#include <Foundation/NSFormatter.h>
#include <Foundation/NSNotification.h>