remove const from pass-by-value parameters

This commit is contained in:
Paul Cornett
2016-01-16 10:55:01 -08:00
parent c557f66eaf
commit 56701052eb
25 changed files with 54 additions and 54 deletions

View File

@@ -62,7 +62,7 @@ public:
Sets the week day carried by the event, normally only used by the
library internally.
*/
void SetWeekDay(const wxDateTime::WeekDay day);
void SetWeekDay(wxDateTime::WeekDay day);
};
wxEventType wxEVT_CALENDAR_SEL_CHANGED;

View File

@@ -98,7 +98,7 @@ public:
@param name
The window name.
*/
wxGenericDirCtrl(wxWindow* parent, const wxWindowID id = wxID_ANY,
wxGenericDirCtrl(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxString& dir = wxDirDialogDefaultFolderStr,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
@@ -126,7 +126,7 @@ public:
Create function for two-step construction. See wxGenericDirCtrl() for
details.
*/
bool Create(wxWindow* parent, const wxWindowID id = wxID_ANY,
bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxString& dir = wxDirDialogDefaultFolderStr,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
@@ -268,11 +268,11 @@ class wxDirFilterListCtrl: public wxChoice
{
public:
wxDirFilterListCtrl();
wxDirFilterListCtrl(wxGenericDirCtrl* parent, const wxWindowID id = wxID_ANY,
wxDirFilterListCtrl(wxGenericDirCtrl* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0);
bool Create(wxGenericDirCtrl* parent, const wxWindowID id = wxID_ANY,
bool Create(wxGenericDirCtrl* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0);

View File

@@ -110,7 +110,7 @@ public:
This form takes numeric ID as the parameter (uses an extension to MS format,
param name="ID" value=id).
*/
bool Display(const int id);
bool Display(int id);
/**
Displays contents panel.

View File

@@ -124,7 +124,7 @@ class wxWebKitStateChangedEvent : public wxCommandEvent
{
public:
int GetState();
void SetState(const int state);
void SetState(int state);
wxString GetURL();
void SetURL(const wxString& url);

View File

@@ -85,7 +85,7 @@ public:
Returns @true if the dictionary was successfully set.
*/
bool SetDictionary(const char *data, const size_t datalen);
bool SetDictionary(const char *data, size_t datalen);
bool SetDictionary(const wxMemoryBuffer &buf);
//@}
};
@@ -144,7 +144,7 @@ public:
Returns @true if the dictionary was successfully set.
*/
bool SetDictionary(const char *data, const size_t datalen);
bool SetDictionary(const char *data, size_t datalen);
bool SetDictionary(const wxMemoryBuffer &buf);
//@}
};