Skip to content

Commit 4e70f09

Browse files
committed
* Printing/GSCUPS/GSCUPSPrinter.m,
* Printing/GSCUPS/GSCUPSPrintInfo.m: Restore -allocWithZone: methods as this is needed to override behaviour in superclass.
1 parent 99b904e commit 4e70f09

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2018-01-01 Fred Kiefer <[email protected]>
2+
3+
* Printing/GSCUPS/GSCUPSPrinter.m,
4+
* Printing/GSCUPS/GSCUPSPrintInfo.m:
5+
Restore -allocWithZone: methods as this is needed to override
6+
behaviour in superclass.
7+
18
2018-01-01 Yavor Doganov <[email protected]>
29

310
* Documentation/make_services.1: Typo fix.

Printing/GSCUPS/GSCUPSPrintInfo.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ + (void)initialize
5353
}
5454
}
5555

56+
// Required because the super class redefines the default
57+
+ (id) allocWithZone: (NSZone*)z
58+
{
59+
return NSAllocateObject (self, 0, z);
60+
}
5661

5762
+ (NSPrinter*) defaultPrinter
5863
{

Printing/GSCUPS/GSCUPSPrinter.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ +(void) initialize
6969
}
7070
}
7171

72+
// Required because the super class redefines the default
73+
+ (id) allocWithZone: (NSZone*)z
74+
{
75+
return NSAllocateObject (self, 0, z);
76+
}
77+
7278
//
7379
// Finding an NSPrinter
7480
//

0 commit comments

Comments
 (0)