.empty() string decorations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -141,7 +141,7 @@ bool wxChoice::CreateAndInit(wxWindow *parent,
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// now create the real HWND
|
// now create the real HWND
|
||||||
if ( !MSWCreateControl(wxT("COMBOBOX"), _T(""), pos, size) )
|
if ( !MSWCreateControl(wxT("COMBOBOX"), wxEmptyString, pos, size) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -136,7 +136,7 @@ wxDatePickerCtrl::Create(wxWindow *parent,
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// create the native control
|
// create the native control
|
||||||
if ( !MSWCreateControl(DATETIMEPICK_CLASS, _T(""), pos, size) )
|
if ( !MSWCreateControl(DATETIMEPICK_CLASS, wxEmptyString, pos, size) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( dt.IsValid() )
|
if ( dt.IsValid() )
|
||||||
|
@@ -672,7 +672,7 @@ extern "C" void DumpTI(ULONG ti)
|
|||||||
}
|
}
|
||||||
|
|
||||||
OutputDebugString(wxString::Format(_T("tag=%s%s"),
|
OutputDebugString(wxString::Format(_T("tag=%s%s"),
|
||||||
nested ? _T("nested ") : _T(""),
|
nested ? _T("nested ") : wxEmptyString,
|
||||||
TagString(tag).c_str()));
|
TagString(tag).c_str()));
|
||||||
if ( tag == wxDbgHelpDLL::SYMBOL_TAG_UDT )
|
if ( tag == wxDbgHelpDLL::SYMBOL_TAG_UDT )
|
||||||
{
|
{
|
||||||
|
@@ -350,7 +350,7 @@ bool wxListCtrl::Create(wxWindow *parent,
|
|||||||
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
|
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( !MSWCreateControl(WC_LISTVIEW, _T(""), pos, size) )
|
if ( !MSWCreateControl(WC_LISTVIEW, wxEmptyString, pos, size) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// explicitly say that we want to use Unicode because otherwise we get ANSI
|
// explicitly say that we want to use Unicode because otherwise we get ANSI
|
||||||
|
@@ -94,8 +94,8 @@ static wxString wxGetPrintDlgError()
|
|||||||
static HGLOBAL wxCreateDevNames(const wxString& driverName, const wxString& printerName, const wxString& portName)
|
static HGLOBAL wxCreateDevNames(const wxString& driverName, const wxString& printerName, const wxString& portName)
|
||||||
{
|
{
|
||||||
HGLOBAL hDev = NULL;
|
HGLOBAL hDev = NULL;
|
||||||
// if (!driverName.IsEmpty() && !printerName.IsEmpty() && !portName.IsEmpty())
|
// if (!driverName.empty() && !printerName.empty() && !portName.empty())
|
||||||
if (driverName.IsEmpty() && printerName.IsEmpty() && portName.IsEmpty())
|
if (driverName.empty() && printerName.empty() && portName.empty())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -299,7 +299,7 @@ bool wxWindowsPrintNativeData::TransferTo( wxPrintData &data )
|
|||||||
// Not sure if we should check for this mismatch
|
// Not sure if we should check for this mismatch
|
||||||
// wxASSERT_MSG( (m_printerName == "" || (devName == m_printerName)), "Printer name obtained from DEVMODE and DEVNAMES were different!");
|
// wxASSERT_MSG( (m_printerName == "" || (devName == m_printerName)), "Printer name obtained from DEVMODE and DEVNAMES were different!");
|
||||||
|
|
||||||
if (printerName != wxT(""))
|
if (!printerName.empty())
|
||||||
data.SetPrinterName( printerName );
|
data.SetPrinterName( printerName );
|
||||||
|
|
||||||
GlobalUnlock(hDevNames);
|
GlobalUnlock(hDevNames);
|
||||||
@@ -391,7 +391,7 @@ bool wxWindowsPrintNativeData::TransferFrom( const wxPrintData &data )
|
|||||||
|
|
||||||
//// Printer name
|
//// Printer name
|
||||||
wxString name = data.GetPrinterName();
|
wxString name = data.GetPrinterName();
|
||||||
if (name != wxT(""))
|
if (!name.empty())
|
||||||
{
|
{
|
||||||
//int len = wxMin(31, m_printerName.Len());
|
//int len = wxMin(31, m_printerName.Len());
|
||||||
wxStrncpy((wxChar*)devMode->dmDeviceName,name.c_str(),31);
|
wxStrncpy((wxChar*)devMode->dmDeviceName,name.c_str(),31);
|
||||||
@@ -505,7 +505,7 @@ bool wxWindowsPrintNativeData::TransferFrom( const wxPrintData &data )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: I hope it's OK to pass some empty strings to DEVNAMES.
|
// TODO: I hope it's OK to pass some empty strings to DEVNAMES.
|
||||||
m_devNames = (void*) (long) wxCreateDevNames(wxT(""), data.GetPrinterName(), wxT(""));
|
m_devNames = (void*) (long) wxCreateDevNames(wxEmptyString, data.GetPrinterName(), wxEmptyString);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -128,7 +128,7 @@ wxStackFrame::GetParam(size_t n,
|
|||||||
|
|
||||||
void wxStackFrame::OnParam(PSYMBOL_INFO pSymInfo)
|
void wxStackFrame::OnParam(PSYMBOL_INFO pSymInfo)
|
||||||
{
|
{
|
||||||
m_paramTypes.Add(_T(""));
|
m_paramTypes.Add(wxEmptyString);
|
||||||
|
|
||||||
m_paramNames.Add(wxString::FromAscii(pSymInfo->Name));
|
m_paramNames.Add(wxString::FromAscii(pSymInfo->Name));
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@ void wxStackFrame::OnParam(PSYMBOL_INFO pSymInfo)
|
|||||||
__except ( EXCEPTION_EXECUTE_HANDLER )
|
__except ( EXCEPTION_EXECUTE_HANDLER )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
m_paramValues.Add(_T(""));
|
m_paramValues.Add(wxEmptyString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -145,7 +145,7 @@ bool wxTabCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
|||||||
case TTN_NEEDTEXT:
|
case TTN_NEEDTEXT:
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
// if (tool->m_shortHelpString != "")
|
// if (!tool->m_shortHelpString.empty())
|
||||||
// ttText->lpszText = (char *) (const char *)tool->m_shortHelpString;
|
// ttText->lpszText = (char *) (const char *)tool->m_shortHelpString;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -926,7 +926,7 @@ bool wxTreeCtrl::SetForegroundColour(const wxColour &colour)
|
|||||||
|
|
||||||
wxString wxTreeCtrl::GetItemText(const wxTreeItemId& item) const
|
wxString wxTreeCtrl::GetItemText(const wxTreeItemId& item) const
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( item.IsOk(), wxT(""), wxT("invalid tree item") );
|
wxCHECK_MSG( item.IsOk(), wxEmptyString, wxT("invalid tree item") );
|
||||||
|
|
||||||
wxChar buf[512]; // the size is arbitrary...
|
wxChar buf[512]; // the size is arbitrary...
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user