diff options
author | markt <markt> | 2007-07-22 19:50:09 (GMT) |
---|---|---|
committer | markt <markt> | 2007-07-22 19:50:09 (GMT) |
commit | db002b568670977364db48a89ca116804de01925 (patch) | |
tree | 7526c8642f3d3a6482e7824f2e4e7e6dfeff7625 /src/FbTk | |
parent | d91bf8ffdb0be02f95a4c93fc57e7f213311b9d3 (diff) | |
download | fluxbox-db002b568670977364db48a89ca116804de01925.zip fluxbox-db002b568670977364db48a89ca116804de01925.tar.bz2 |
more cleanup
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/ImageImlib2.cc | 4 | ||||
-rw-r--r-- | src/FbTk/KeyUtil.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/ImageImlib2.cc b/src/FbTk/ImageImlib2.cc index 2d3ff6c..b4ef415 100644 --- a/src/FbTk/ImageImlib2.cc +++ b/src/FbTk/ImageImlib2.cc | |||
@@ -52,7 +52,7 @@ ImageImlib2::ImageImlib2() { | |||
52 | 52 | ||
53 | // TODO: this are the potential candidates, | 53 | // TODO: this are the potential candidates, |
54 | // choose only sane ones. open for discussion | 54 | // choose only sane ones. open for discussion |
55 | static char* format_list[] = { | 55 | static const char* format_list[] = { |
56 | "PNG", // pngloader | 56 | "PNG", // pngloader |
57 | "JPEG", "JPG", "JFI", "JFIF", // jpegloader | 57 | "JPEG", "JPG", "JFI", "JFIF", // jpegloader |
58 | // "TIFF", "TIF", // tiffloader | 58 | // "TIFF", "TIF", // tiffloader |
@@ -67,7 +67,7 @@ ImageImlib2::ImageImlib2() { | |||
67 | NULL | 67 | NULL |
68 | }; | 68 | }; |
69 | 69 | ||
70 | char** format = NULL; | 70 | const char** format = NULL; |
71 | for(format = format_list; *format != NULL; format++) { | 71 | for(format = format_list; *format != NULL; format++) { |
72 | Image::registerType(*format, *this); | 72 | Image::registerType(*format, *this); |
73 | } | 73 | } |
diff --git a/src/FbTk/KeyUtil.cc b/src/FbTk/KeyUtil.cc index 1830dca..a6ca632 100644 --- a/src/FbTk/KeyUtil.cc +++ b/src/FbTk/KeyUtil.cc | |||
@@ -34,7 +34,7 @@ | |||
34 | namespace { | 34 | namespace { |
35 | 35 | ||
36 | struct t_modlist{ | 36 | struct t_modlist{ |
37 | char *str; | 37 | const char *str; |
38 | unsigned int mask; | 38 | unsigned int mask; |
39 | bool operator == (const char *modstr) const { | 39 | bool operator == (const char *modstr) const { |
40 | return (strcasecmp(str, modstr) == 0 && mask !=0); | 40 | return (strcasecmp(str, modstr) == 0 && mask !=0); |