Globally replace _T() with wxT().

Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-07-23 20:30:22 +00:00
parent 32cdc45397
commit 9a83f86094
798 changed files with 10370 additions and 10349 deletions

View File

@@ -51,7 +51,7 @@ static wxString AllAsString(const wxArrayString& a)
s.reserve(20*count);
for ( size_t n = 0; n < count; n++ )
{
s << a[n] << (n == count - 1 ? _T("\n") : _T(", "));
s << a[n] << (n == count - 1 ? wxT("\n") : wxT(", "));
}
return s;
@@ -65,19 +65,19 @@ wxString wxAboutDialogInfo::GetDescriptionAndCredits() const
{
wxString s = GetDescription();
if ( !s.empty() )
s << _T('\n');
s << wxT('\n');
if ( HasDevelopers() )
s << _T('\n') << _("Developed by ") << AllAsString(GetDevelopers());
s << wxT('\n') << _("Developed by ") << AllAsString(GetDevelopers());
if ( HasDocWriters() )
s << _T('\n') << _("Documentation by ") << AllAsString(GetDocWriters());
s << wxT('\n') << _("Documentation by ") << AllAsString(GetDocWriters());
if ( HasArtists() )
s << _T('\n') << _("Graphics art by ") << AllAsString(GetArtists());
s << wxT('\n') << _("Graphics art by ") << AllAsString(GetArtists());
if ( HasTranslators() )
s << _T('\n') << _("Translations by ") << AllAsString(GetTranslators());
s << wxT('\n') << _("Translations by ") << AllAsString(GetTranslators());
return s;
}
@@ -122,7 +122,7 @@ bool wxGenericAboutDialog::Create(const wxAboutDialogInfo& info, wxWindow* paren
m_sizerText = new wxBoxSizer(wxVERTICAL);
wxString nameAndVersion = info.GetName();
if ( info.HasVersion() )
nameAndVersion << _T(' ') << info.GetVersion();
nameAndVersion << wxT(' ') << info.GetVersion();
wxStaticText *label = new wxStaticText(this, wxID_ANY, nameAndVersion);
wxFont fontBig(*wxNORMAL_FONT);
fontBig.SetPointSize(fontBig.GetPointSize() + 2);
@@ -202,8 +202,8 @@ bool wxGenericAboutDialog::Create(const wxAboutDialogInfo& info, wxWindow* paren
void wxGenericAboutDialog::AddControl(wxWindow *win, const wxSizerFlags& flags)
{
wxCHECK_RET( m_sizerText, _T("can only be called after Create()") );
wxASSERT_MSG( win, _T("can't add NULL window to about dialog") );
wxCHECK_RET( m_sizerText, wxT("can only be called after Create()") );
wxASSERT_MSG( win, wxT("can't add NULL window to about dialog") );
m_sizerText->Add(win, flags);
}