Make source string const in wxPropertyGrid escape sequence methods
Source string is not changed in {Expand,Create}EscapeSequences() methods, so make it const. Closes https://github.com/wxWidgets/wxWidgets/pull/271
This commit is contained in:
committed by
Vadim Zeitlin
parent
c6570770bc
commit
d4460435d9
@@ -1553,12 +1553,12 @@ public:
|
|||||||
// Converts escape sequences in src_str to newlines,
|
// Converts escape sequences in src_str to newlines,
|
||||||
// tabs, etc. and copies result to dst_str.
|
// tabs, etc. and copies result to dst_str.
|
||||||
static wxString& ExpandEscapeSequences( wxString& dst_str,
|
static wxString& ExpandEscapeSequences( wxString& dst_str,
|
||||||
wxString& src_str );
|
const wxString& src_str );
|
||||||
|
|
||||||
// Converts newlines, tabs, etc. in src_str to escape
|
// Converts newlines, tabs, etc. in src_str to escape
|
||||||
// sequences, and copies result to dst_str.
|
// sequences, and copies result to dst_str.
|
||||||
static wxString& CreateEscapeSequences( wxString& dst_str,
|
static wxString& CreateEscapeSequences( wxString& dst_str,
|
||||||
wxString& src_str );
|
const wxString& src_str );
|
||||||
|
|
||||||
// Checks system screen design used for laying out various dialogs.
|
// Checks system screen design used for laying out various dialogs.
|
||||||
static bool IsSmallScreen();
|
static bool IsSmallScreen();
|
||||||
|
@@ -1733,7 +1733,7 @@ wxPoint wxPropertyGrid::GetGoodEditorDialogPosition( wxPGProperty* p,
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
wxString& wxPropertyGrid::ExpandEscapeSequences( wxString& dst_str, wxString& src_str )
|
wxString& wxPropertyGrid::ExpandEscapeSequences( wxString& dst_str, const wxString& src_str )
|
||||||
{
|
{
|
||||||
dst_str.clear();
|
dst_str.clear();
|
||||||
|
|
||||||
@@ -1791,7 +1791,7 @@ wxString& wxPropertyGrid::ExpandEscapeSequences( wxString& dst_str, wxString& sr
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
wxString& wxPropertyGrid::CreateEscapeSequences( wxString& dst_str, wxString& src_str )
|
wxString& wxPropertyGrid::CreateEscapeSequences( wxString& dst_str, const wxString& src_str )
|
||||||
{
|
{
|
||||||
dst_str.clear();
|
dst_str.clear();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user