replaced T() makro with wxT() due to namespace probs, _T() exists, too
fixed compilation problems, mainly in html code compiles and links fine on Solaris, runs with samples and Mahogany git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,7 +47,7 @@ wxPrinterDC::wxPrinterDC(const wxString& driver_name, const wxString& device_nam
|
||||
{
|
||||
m_isInteractive = interactive;
|
||||
|
||||
if (!file.IsNull() && file != T(""))
|
||||
if (!file.IsNull() && file != wxT(""))
|
||||
m_printData.SetFilename(file);
|
||||
|
||||
#if wxUSE_COMMON_DIALOGS
|
||||
@@ -82,9 +82,9 @@ wxPrinterDC::wxPrinterDC(const wxString& driver_name, const wxString& device_nam
|
||||
}
|
||||
else
|
||||
#endif
|
||||
if ((!driver_name.IsNull() && driver_name != T("")) &&
|
||||
(!device_name.IsNull() && device_name != T("")) &&
|
||||
(!file.IsNull() && file != T("")))
|
||||
if ((!driver_name.IsNull() && driver_name != wxT("")) &&
|
||||
(!device_name.IsNull() && device_name != wxT("")) &&
|
||||
(!file.IsNull() && file != wxT("")))
|
||||
{
|
||||
m_hDC = (WXHDC) CreateDC(WXSTRINGCAST driver_name, WXSTRINGCAST device_name, WXSTRINGCAST file, NULL);
|
||||
m_ok = m_hDC ? TRUE: FALSE;
|
||||
@@ -184,7 +184,7 @@ bool wxPrinterDC::StartDoc(const wxString& message)
|
||||
if (ret <= 0)
|
||||
{
|
||||
DWORD lastError = GetLastError();
|
||||
wxLogDebug(T("wxDC::StartDoc failed with error: %d\n"), lastError);
|
||||
wxLogDebug(wxT("wxDC::StartDoc failed with error: %d\n"), lastError);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -262,7 +262,7 @@ static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
|
||||
GlobalFree(pd.hDevMode);
|
||||
pd.hDevMode=NULL;
|
||||
}
|
||||
return ( deviceName != T("") );
|
||||
return ( deviceName != wxT("") );
|
||||
}
|
||||
|
||||
#if 0
|
||||
@@ -354,7 +354,7 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
|
||||
wxChar* deviceName;
|
||||
wxChar* portName = (wxChar*) NULL; // Obsolete in WIN32
|
||||
|
||||
if (devNameStr == T(""))
|
||||
if (devNameStr == wxT(""))
|
||||
deviceName = (wxChar*) NULL;
|
||||
else
|
||||
deviceName = WXSTRINGCAST devNameStr;
|
||||
@@ -366,13 +366,13 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
|
||||
if ( hDevMode )
|
||||
lpDevMode = (DEVMODE*) GlobalLock(hDevMode);
|
||||
|
||||
if (devNameStr == T(""))
|
||||
if (devNameStr == wxT(""))
|
||||
{
|
||||
// Retrieve the default device name
|
||||
wxString portName;
|
||||
bool ret = wxGetDefaultDeviceName(devNameStr, portName);
|
||||
|
||||
wxASSERT_MSG( ret, T("Could not get default device name.") );
|
||||
wxASSERT_MSG( ret, wxT("Could not get default device name.") );
|
||||
|
||||
deviceName = WXSTRINGCAST devNameStr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user