Skip to content

Commit

Permalink
pass const ref for wxString
Browse files Browse the repository at this point in the history
  • Loading branch information
guanlisheng committed Aug 11, 2014
1 parent 465e6bb commit c2df3b1
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/indexbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void wxIndexBook::CreateControls()
bool wxIndexBook::ShowToolTips(){return true;}
/*---------------------------------------------------------------------------*/
void wxIndexBook::SetDbObjectName(wxSQLite3Database* db,
const wxString objectname,
const wxString& objectname,
const wxString& base)
{
wxDbBook::SetDbObjectName(db, objectname, base);
Expand Down
2 changes: 1 addition & 1 deletion src/indexbook.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class wxIndexBook: public wxDbBook
~wxIndexBook();

virtual void SetDbObjectName(wxSQLite3Database* db,
const wxString objectname,
const wxString& objectname,
const wxString& base);

virtual void RefreshDbObject();
Expand Down
2 changes: 1 addition & 1 deletion src/paneldata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ wxPanelData::~wxPanelData()
}
/*---------------------------------------------------------------------------*/
void wxPanelData::SetDbTableViewName(wxSQLite3Database* db,
const wxString objectname,
const wxString& objectname,
const wxString& base)
{
if (m_DataGrid)
Expand Down
2 changes: 1 addition & 1 deletion src/paneldata.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class wxPanelData : public wxPanel
~wxPanelData();

void SetDbTableViewName(wxSQLite3Database* db,
const wxString objectname,
const wxString& objectname,
const wxString& base = wxEmptyString);

bool HasFocus();
Expand Down
2 changes: 1 addition & 1 deletion src/specgrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ BEGIN_EVENT_TABLE(wxDataGrid, wxSpecGrid)
END_EVENT_TABLE()
/*---------------------------------------------------------------------------*/
void wxDataGrid::SetDbTableViewName(wxSQLite3Database* db,
const wxString objectname,
const wxString& objectname,
const wxString& base)
{
m_db = db;
Expand Down
2 changes: 1 addition & 1 deletion src/specgrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class WXDLLIMPEXP_SCPECGRID wxDataGrid : public wxSpecGrid
{m_IsFiltered = m_IsSorted = false;}

void SetDbTableViewName(wxSQLite3Database* db,
const wxString objectname,
const wxString& objectname,
const wxString& base = wxEmptyString);

void DoRefresh(bool usefilter = false);
Expand Down
2 changes: 1 addition & 1 deletion src/sqlbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void wxSQLBook::OnQueryUpdate(wxUpdateUIEvent& event)
event.Enable(false);
}
/*---------------------------------------------------------------------------*/
void wxSQLBook::ExecQuery(const wxString sql, bool explain, bool history)
void wxSQLBook::ExecQuery(const wxString& sql, bool explain, bool history)
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion src/sqlbook.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class wxSQLBook: public wxPanel
}
void SetAutoTransact(bool autotransact){m_AutoTransact = autotransact;}

void ExecQuery(const wxString sql, bool explain = false,
void ExecQuery(const wxString& sql, bool explain = false,
bool history = true);
void ExecScript(const wxArrayString& arrayString);

Expand Down
2 changes: 1 addition & 1 deletion src/tablebook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void wxTableBook::OnTablebookPageChanging( wxAuiNotebookEvent& event )
}
/*---------------------------------------------------------------------------*/
void wxTableBook::SetDbObjectName(wxSQLite3Database* db,
const wxString objectname, const wxString& base)
const wxString& objectname, const wxString& base)
{
wxDbBook::SetDbObjectName(db, objectname, base);
m_PageData->SetDbTableViewName(db, objectname, base);
Expand Down
2 changes: 1 addition & 1 deletion src/tablebook.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class wxTableBook: public wxDbBook
~wxTableBook();

virtual void SetDbObjectName(wxSQLite3Database* db,
const wxString objectname,
const wxString& objectname,
const wxString& base = wxEmptyString);

virtual void RefreshDbObject();
Expand Down
2 changes: 1 addition & 1 deletion src/triggerbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void wxTriggerBook::CreateControls()
bool wxTriggerBook::ShowToolTips(){return true;}
/*---------------------------------------------------------------------------*/
void wxTriggerBook::SetDbObjectName(wxSQLite3Database* db,
const wxString objectname,
const wxString& objectname,
const wxString& base)
{
wxDbBook::SetDbObjectName(db, objectname, base);
Expand Down
2 changes: 1 addition & 1 deletion src/triggerbook.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class wxTriggerBook : public wxDbBook
~wxTriggerBook();

virtual void SetDbObjectName(wxSQLite3Database* db,
const wxString objectname,
const wxString& objectname,
const wxString& base);

virtual void RefreshDbObject();
Expand Down
2 changes: 1 addition & 1 deletion src/viewbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void wxViewBook::OnViewebookPageChanging( wxAuiNotebookEvent& event )
}
/*---------------------------------------------------------------------------*/
void wxViewBook::SetDbObjectName(wxSQLite3Database* db,
const wxString objectname, const wxString& base)
const wxString& objectname, const wxString& base)
{
wxDbBook::SetDbObjectName(db, objectname, base);
m_PageData->SetDbTableViewName(db, objectname, base);
Expand Down
2 changes: 1 addition & 1 deletion src/viewbook.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class wxViewBook: public wxDbBook
~wxViewBook();

virtual void SetDbObjectName(wxSQLite3Database* db,
const wxString objectname,
const wxString& objectname,
const wxString& base);

virtual void RefreshDbObject();
Expand Down

0 comments on commit c2df3b1

Please sign in to comment.