Remove compiler warnings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@37617 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2014-01-19 11:19:59 +00:00
parent df44194b98
commit facac34b47
6 changed files with 12 additions and 8 deletions

View file

@ -1,3 +1,11 @@
2014-01-19 Fred Kiefer <FredKiefer@gmx.de>
* GormCore/GormResourceManager.m,
* GormCore/GormResource.m,
* GormCore/GormOutlineView.m,
* GormCore/GormObjectEditor.m,
* GormCore/GormClassManager.m: Remove compiler warnings.
2014-01-19 Fred Kiefer <FredKiefer@gmx.de>
* GormInfo.plist: Don't clain to be able to write XIB files.

View file

@ -1457,11 +1457,9 @@
{
NSDictionary *classInfo = [dict objectForKey: key];
NSMutableDictionary *newInfo;
NSMutableDictionary *oldInfo;
id obj;
newInfo = [[NSMutableDictionary alloc] init];
oldInfo = [classInformation objectForKey: key];
[classInformation setObject: newInfo forKey: key];

View file

@ -177,10 +177,6 @@ static NSMapTable *docMap = 0;
&& [[document nameForObject: selected] isEqualToString: @"NSOwner"] == NO
&& [[document nameForObject: selected] isEqualToString: @"NSFirst"] == NO)
{
NSNotificationCenter *nc;
nc = [NSNotificationCenter defaultCenter];
if ([selected isKindOfClass: [NSMenu class]] &&
[[document nameForObject: selected] isEqual: @"NSMenu"] == YES)
{

View file

@ -34,6 +34,7 @@
#include <AppKit/NSTableColumn.h>
#include <AppKit/NSCell.h>
#include <AppKit/NSEvent.h>
#include <AppKit/NSMenuItem.h>
#include <AppKit/NSTextFieldCell.h>
#include <AppKit/NSWindow.h>
#include <AppKit/NSImage.h>

View file

@ -22,6 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
*/
#include <Foundation/NSData.h>
#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include "GormResource.h"

View file

@ -124,11 +124,11 @@
{
if (![classManager parseHeader: file])
{
NSString *file = [file lastPathComponent];
NSString *fileName = [file lastPathComponent];
NSString *message;
message = [NSString stringWithFormat:
_(@"Unable to parse class in %@"), file];
_(@"Unable to parse class in %@"), fileName];
NSRunAlertPanel(_(@"Problem parsing class"),
message,