wxEmptyString decorations.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2005-02-10 17:25:11 +00:00
parent 8f3516688b
commit 0966aee3d9
7 changed files with 12 additions and 12 deletions

View File

@ -64,7 +64,7 @@ bool wxBitmapButton::Create(wxWindow *parent,
// we add wxBU_EXACTFIT because the bitmap buttons are not the standard
// ones and so shouldn't be forced to be of the standard size which is
// typically too big for them
if ( !wxButton::Create(parent, id, bitmap, _T(""),
if ( !wxButton::Create(parent, id, bitmap, wxEmptyString,
pos, size, style | wxBU_EXACTFIT, validator, name) )
return false;

View File

@ -1832,7 +1832,7 @@ void wxMenuBar::SetLabelTop(size_t pos, const wxString& label)
wxString wxMenuBar::GetLabelTop(size_t pos) const
{
wxCHECK_MSG( pos < GetCount(), _T(""), _T("invalid index in GetLabelTop") );
wxCHECK_MSG( pos < GetCount(), wxEmptyString, _T("invalid index in GetLabelTop") );
return m_menuInfos[pos].GetLabel();
}

View File

@ -144,7 +144,7 @@ bool wxNotebook::Create(wxWindow *parent,
wxString wxNotebook::GetPageText(size_t nPage) const
{
wxCHECK_MSG( IS_VALID_PAGE(nPage), _T(""), _T("invalid notebook page") );
wxCHECK_MSG( IS_VALID_PAGE(nPage), wxEmptyString, _T("invalid notebook page") );
return m_titles[nPage];
}

View File

@ -112,7 +112,7 @@ wxRadioBox::wxRadioBox(wxWindow *parent, wxWindowID id, const wxString& title,
Init();
(void)Create(parent, id, title, pos, size, chs.GetCount(),
(void)Create(parent, id, title, pos, size, chs.GetCount(),
chs.GetStrings(), majorDim, style, val, name);
}
@ -129,7 +129,7 @@ bool wxRadioBox::Create(wxWindow *parent,
{
wxCArrayString chs(choices);
return Create(parent, id, title, pos, size, chs.GetCount(),
return Create(parent, id, title, pos, size, chs.GetCount(),
chs.GetStrings(), majorDim, style, val, name);
}
@ -309,7 +309,7 @@ void wxRadioBox::OnRadioButton(wxEvent& event)
wxString wxRadioBox::GetString(int n) const
{
wxCHECK_MSG( IsValid(n), _T(""),
wxCHECK_MSG( IsValid(n), wxEmptyString,
_T("invalid index in wxRadioBox::GetString") );
return m_buttons[n]->GetLabel();

View File

@ -183,7 +183,7 @@ void wxStatusBarUniv::SetStatusText(const wxString& text, int number)
wxString wxStatusBarUniv::GetStatusText(int number) const
{
wxCHECK_MSG( number >= 0 && number < m_nFields, _T(""),
wxCHECK_MSG( number >= 0 && number < m_nFields, wxEmptyString,
_T("invalid status bar field index") );
return m_statusText[number];

View File

@ -821,7 +821,7 @@ wxString wxTextCtrl::GetValue() const
void wxTextCtrl::Clear()
{
SetValue(_T(""));
SetValue(wxEmptyString);
}
bool wxTextCtrl::ReplaceLine(wxTextCoord line,
@ -1249,7 +1249,7 @@ void wxTextCtrl::Remove(wxTextPos from, wxTextPos to)
// if necessary
OrderPositions(from, to);
Replace(from, to, _T(""));
Replace(from, to, wxEmptyString);
}
void wxTextCtrl::WriteText(const wxString& text)
@ -1651,7 +1651,7 @@ wxString wxTextCtrl::GetLineText(wxTextCoord line) const
//this is called during DoGetBestSize
if (line == 0 && GetLineCount() == 0) return wxEmptyString ;
wxCHECK_MSG( (size_t)line < GetLineCount(), _T(""),
wxCHECK_MSG( (size_t)line < GetLineCount(), wxEmptyString,
_T("line index out of range") );
return GetLines()[line];

View File

@ -33,7 +33,7 @@ wxBitmapXmlHandler::wxBitmapXmlHandler()
wxObject *wxBitmapXmlHandler::DoCreateResource()
{
return new wxBitmap(GetBitmap(wxT("")));
return new wxBitmap(GetBitmap(wxEmptyString));
}
bool wxBitmapXmlHandler::CanHandle(wxXmlNode *node)
@ -50,7 +50,7 @@ wxIconXmlHandler::wxIconXmlHandler()
wxObject *wxIconXmlHandler::DoCreateResource()
{
return new wxIcon(GetIcon(wxT("")));
return new wxIcon(GetIcon(wxEmptyString));
}
bool wxIconXmlHandler::CanHandle(wxXmlNode *node)