diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-05 13:55:58 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-05 13:55:58 +0100 |
commit | 7b97eb6e97d2156298bb06b0dfd13a12c68c525c (patch) | |
tree | 083314746cc5b635f0940e6da620af0620b10e28 /font.h | |
parent | 978462168c1326ffe60a434dee9e9ee642a62695 (diff) | |
download | vdr-7b97eb6e97d2156298bb06b0dfd13a12c68c525c.tar.gz vdr-7b97eb6e97d2156298bb06b0dfd13a12c68c525c.tar.bz2 |
Made all font and image data 'const'
Diffstat (limited to 'font.h')
-rw-r--r-- | font.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: font.h 1.11 2005/03/19 15:51:19 kls Exp $ + * $Id: font.h 1.12 2006/02/05 13:46:36 kls Exp $ */ #ifndef __FONT_H @@ -43,9 +43,9 @@ private: const tCharData *data[NUMCHARS]; int height; public: - cFont(void *Data); + cFont(const void *Data); virtual ~cFont() {} - void SetData(void *Data); + void SetData(const void *Data); virtual int Width(unsigned char c) const { return data[c]->width; } ///< Returns the width of the given character. virtual int Width(const char *s) const; @@ -59,7 +59,7 @@ public: const tCharData *CharData(unsigned char c) const { return data[c]; } static bool SetCode(const char *Code); static void SetCode(eDvbCode Code); - static void SetFont(eDvbFont Font, void *Data = NULL); + static void SetFont(eDvbFont Font, const void *Data = NULL); static const cFont *GetFont(eDvbFont Font); }; |