]>
Commit | Line | Data |
---|---|---|
ac884b6a | 1 | // |
503b54c9 | 2 | // Shared message class for the CUPS PPD Compiler. |
ac884b6a | 3 | // |
503b54c9 MS |
4 | // Copyright 2007-2009 by Apple Inc. |
5 | // Copyright 2002-2005 by Easy Software Products. | |
ac884b6a | 6 | // |
e3101897 | 7 | // Licensed under Apache License v2.0. See the file "LICENSE" for more information. |
ac884b6a MS |
8 | // |
9 | ||
10 | // | |
11 | // Include necessary headers... | |
12 | // | |
13 | ||
38e73f87 | 14 | #include "ppdc-private.h" |
ac884b6a MS |
15 | |
16 | ||
17 | // | |
18 | // 'ppdcMessage::ppdcMessage()' - Create a shared message. | |
19 | // | |
20 | ||
21 | ppdcMessage::ppdcMessage(const char *i, // I - ID | |
22 | const char *s) // I - Text | |
23 | : ppdcShared() | |
24 | { | |
94da7e34 MS |
25 | PPDC_NEW; |
26 | ||
ac884b6a MS |
27 | id = new ppdcString(i); |
28 | string = new ppdcString(s); | |
29 | } | |
30 | ||
31 | ||
32 | // | |
33 | // 'ppdcMessage::~ppdcMessage()' - Destroy a shared message. | |
34 | // | |
35 | ||
36 | ppdcMessage::~ppdcMessage() | |
37 | { | |
94da7e34 MS |
38 | PPDC_DELETE; |
39 | ||
e4572d57 MS |
40 | id->release(); |
41 | string->release(); | |
ac884b6a | 42 | } |