From e5712f7bf8aaedb522ed3d7d91df980f18bb7efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 1 Nov 2011 10:55:34 +0000 Subject: [PATCH] Fix constness to avoid warnings. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43058 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/mail_utils/spamdbm.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/mail_utils/spamdbm.cpp b/src/bin/mail_utils/spamdbm.cpp index 257f3b70dd..041fe540ca 100644 --- a/src/bin/mail_utils/spamdbm.cpp +++ b/src/bin/mail_utils/spamdbm.cpp @@ -635,7 +635,7 @@ typedef enum PropertyNumbersEnum PN_MAX } PropertyNumbers; -static char * g_PropertyNames [PN_MAX] = +static const char * g_PropertyNames [PN_MAX] = { "DatabaseFile", "Spam", @@ -863,7 +863,7 @@ typedef enum ScoringModeEnum SM_MAX } ScoringModes; -static char * g_ScoringModeNames [SM_MAX] = +static const char * g_ScoringModeNames [SM_MAX] = { "Robinson", "ChiSquared" @@ -885,7 +885,7 @@ typedef enum TokenizeModeEnum TM_MAX } TokenizeModes; -static char * g_TokenizeModeNames [TM_MAX] = +static const char * g_TokenizeModeNames [TM_MAX] = { "All", "Plain text", @@ -6097,7 +6097,7 @@ void ControlsView::AttachedToWindow () float RowHeight; float RowTop; ScoringModes ScoringMode; - char *StringPntr; + const char *StringPntr; BMenuItem *TempMenuItemPntr; BRect TempRect; char TempString [PATH_MAX];