diff --git a/Headers/gnustep/base/NSException.h b/Headers/gnustep/base/NSException.h index 1ee4aef4a..64e9bac85 100644 --- a/Headers/gnustep/base/NSException.h +++ b/Headers/gnustep/base/NSException.h @@ -59,14 +59,14 @@ @end /* Common exceptions */ -GS_EXPORT const NSString* const NSGenericException; -GS_EXPORT const NSString* const NSInternalInconsistencyException; -GS_EXPORT const NSString* const NSInvalidArgumentException; -GS_EXPORT const NSString* const NSMallocException; -GS_EXPORT const NSString* const NSRangeException; -GS_EXPORT const NSString* const NSCharacterConversionException; +GS_EXPORT NSString* const NSGenericException; +GS_EXPORT NSString* const NSInternalInconsistencyException; +GS_EXPORT NSString* const NSInvalidArgumentException; +GS_EXPORT NSString* const NSMallocException; +GS_EXPORT NSString* const NSRangeException; +GS_EXPORT NSString* const NSCharacterConversionException; #ifndef STRICT_OPENSTEP -GS_EXPORT const NSString* const NSParseErrorException; +GS_EXPORT NSString* const NSParseErrorException; #endif /* Exception handler definitions */ diff --git a/Source/NSException.m b/Source/NSException.m index 745743e0a..d8c0cc522 100644 --- a/Source/NSException.m +++ b/Source/NSException.m @@ -37,45 +37,45 @@ /** * A generic exception for general purpose usage. */ -const NSString* const NSGenericException +NSString* const NSGenericException = @"NSGenericException"; /** * An exception for caes where unexpected state is detected within an object */ -const NSString* const NSInternalInconsistencyException +NSString* const NSInternalInconsistencyException = @"NSInternalInconsistencyException"; /** * An exception used when an invalid argument is passed to a method * or function. */ -const NSString* const NSInvalidArgumentException +NSString* const NSInvalidArgumentException = @"NSInvalidArgumentException"; /** * An exception used when the system faols to allocate required memory. */ -const NSString* const NSMallocException +NSString* const NSMallocException = @"NSMallocException"; /** * An exception used when an illegal range is encountered ... usually this * is used to provide more information than an invalid argument exception. */ -const NSString* const NSRangeException +NSString* const NSRangeException = @"NSRangeException"; /** * An exception when character set conversion fails. */ -const NSString* const NSCharacterConversionException +NSString* const NSCharacterConversionException = @"NSCharacterConversionException"; /** * An exception used when some form of parsing fails. */ -const NSString* const NSParseErrorException +NSString* const NSParseErrorException = @"NSParseErrorException"; #include "GSPrivate.h"