changeset 844:16f0a313536d

make StyleAttrs::name const again (by jcid) This reverts part of 9a7684395cca and avoids warnings when assigning string constants to the name member of StyleAttrs as done in test/*.cc.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 29 Jan 2009 15:38:26 +0100
parents 7d0860d2a86c
children f325ea7239fa 760f1826c67c
files dw/style.cc dw/style.hh
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dw/style.cc	Thu Jan 29 09:49:24 2009 -0300
+++ b/dw/style.cc	Thu Jan 29 15:38:26 2009 +0100
@@ -269,7 +269,7 @@
 
 Font::~Font ()
 {
-   free (name);
+   free ((char*)name);
 }
 
 void Font::copyAttrs (FontAttrs *attrs)
--- a/dw/style.hh	Thu Jan 29 09:49:24 2009 -0300
+++ b/dw/style.hh	Thu Jan 29 15:38:26 2009 +0100
@@ -546,7 +546,7 @@
 class FontAttrs: public object::Object
 {
 public:
-   char *name;
+   const char *name;
    int size;
    int weight;
    FontStyle style;