]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - ppdc/ppdc-attr.cxx
Import changes from CUPS 1.4.1 (r8801)
[thirdparty/cups.git] / ppdc / ppdc-attr.cxx
index e532531d6cf72dda0b351fe050938354384803bb..1ea0337a93664b479ced16f682aff9e162fe6ab0 100644 (file)
@@ -3,7 +3,7 @@
 //
 //   Attribute class for the CUPS PPD Compiler.
 //
-//   Copyright 2007 by Apple Inc.
+//   Copyright 2007-2009 by Apple Inc.
 //   Copyright 2002-2005 by Easy Software Products.
 //
 //   These coded instructions, statements, and computer programs are the
 //
 // Contents:
 //
-//   ppdcAttr::ppdcAttr()  - Create an attribute.
-//   ppdcAttr::~ppdcAttr() - Destroy an attribute.
+//   ppdcAttr::ppdcAttr()   - Create an attribute.
+//   ppdcAttr::~ppdcAttr()  - Destroy an attribute.
 //
 
 //
 // Include necessary headers...
 //
 
-#include "ppdc.h"
+#include "ppdc-private.h"
 
 
 //
@@ -36,6 +36,8 @@ ppdcAttr::ppdcAttr(const char *n,     // I - Name
                   bool       loc)      // I - Localize this attribute?
   : ppdcShared()
 {
+  PPDC_NEW;
+
   name        = new ppdcString(n);
   selector    = new ppdcString(s);
   text        = new ppdcString(t);
@@ -50,6 +52,8 @@ ppdcAttr::ppdcAttr(const char *n,     // I - Name
 
 ppdcAttr::~ppdcAttr()
 {
+  PPDC_DELETE;
+
   name->release();
   selector->release();
   text->release();