aboutsummaryrefslogtreecommitdiff
path: root/dw/listitem.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-26 22:46:07 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-26 22:46:07 +0100
commit8d23bb6e0bf9bc32d9be7f92df4abdb68e3a7c70 (patch)
treeccf3104d5faf1978f7b046668257e65884a0f605 /dw/listitem.hh
parent307159fdc7edda9d12a174ebc7d3e0e5480aed4f (diff)
don't strdup() text passed to ListItem::initWithText()
Memory allocation for text is done within Textblock itself (noticed by Jeremy).
Diffstat (limited to 'dw/listitem.hh')
-rw-r--r--dw/listitem.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/listitem.hh b/dw/listitem.hh
index ea24af3e..2e303d5d 100644
--- a/dw/listitem.hh
+++ b/dw/listitem.hh
@@ -19,7 +19,7 @@ public:
~ListItem();
void initWithWidget (core::Widget *widget, core::style::Style *style);
- void initWithText (char *texty, core::style::Style *style);
+ void initWithText (const char *text, core::style::Style *style);
};
} // namespace dw