Make wxAuiManager::SavePaneInfo() parameter const

The pane is not modified by saving its details.
This commit is contained in:
hwiesmann
2017-11-05 23:45:21 +01:00
committed by VZ
parent b4e55a7192
commit f9429b7db4
3 changed files with 3 additions and 3 deletions

View File

@@ -496,7 +496,7 @@ public:
void Update(); void Update();
wxString SavePaneInfo(wxAuiPaneInfo& pane); wxString SavePaneInfo(const wxAuiPaneInfo& pane);
void LoadPaneInfo(wxString panePart, wxAuiPaneInfo &pane); void LoadPaneInfo(wxString panePart, wxAuiPaneInfo &pane);
wxString SavePerspective(); wxString SavePerspective();
bool LoadPerspective(const wxString& perspective, bool update = true); bool LoadPerspective(const wxString& perspective, bool update = true);

View File

@@ -394,7 +394,7 @@ public:
@sa LoadPerspective @sa LoadPerspective
@sa SavePerspective @sa SavePerspective
*/ */
wxString SavePaneInfo(wxAuiPaneInfo& pane); wxString SavePaneInfo(const wxAuiPaneInfo& pane);
/** /**
Saves the entire user interface layout into an encoded wxString, which Saves the entire user interface layout into an encoded wxString, which

View File

@@ -1434,7 +1434,7 @@ static wxString EscapeDelimiters(const wxString& s)
return result; return result;
} }
wxString wxAuiManager::SavePaneInfo(wxAuiPaneInfo& pane) wxString wxAuiManager::SavePaneInfo(const wxAuiPaneInfo& pane)
{ {
wxString result = wxT("name="); wxString result = wxT("name=");
result += EscapeDelimiters(pane.name); result += EscapeDelimiters(pane.name);