From 44086e22c76205d58f70523387fae2bf07739734 Mon Sep 17 00:00:00 2001 From: Russ <72242656+Russ741@users.noreply.github.com> Date: Wed, 28 Jun 2023 23:56:30 -0700 Subject: [PATCH] Make delimiters argument const so it can (legally) be a string literal. --- clientgui/BOINCListCtrl.cpp | 2 +- clientgui/BOINCListCtrl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clientgui/BOINCListCtrl.cpp b/clientgui/BOINCListCtrl.cpp index 65d5b0cf0b..c570dc7131 100644 --- a/clientgui/BOINCListCtrl.cpp +++ b/clientgui/BOINCListCtrl.cpp @@ -315,7 +315,7 @@ bool CBOINCListCtrl::OnRestoreState(wxConfigBase* pConfig) { } -void CBOINCListCtrl::TokenizedStringToArray(wxString tokenized, char * delimiters, wxArrayString* array) { +void CBOINCListCtrl::TokenizedStringToArray(wxString tokenized, const char * delimiters, wxArrayString* array) { wxString name; array->Clear(); diff --git a/clientgui/BOINCListCtrl.h b/clientgui/BOINCListCtrl.h index 395f11a7d4..e2b1144040 100644 --- a/clientgui/BOINCListCtrl.h +++ b/clientgui/BOINCListCtrl.h @@ -74,7 +74,7 @@ public: virtual bool OnSaveState(wxConfigBase* pConfig); virtual bool OnRestoreState(wxConfigBase* pConfig); - void TokenizedStringToArray(wxString tokenized, char * delimiters, wxArrayString* array); + void TokenizedStringToArray(wxString tokenized, const char * delimiters, wxArrayString* array); void SetListColumnOrder(wxArrayString& orderArray); void SetStandardColumnOrder(); bool IsColumnOrderStandard();