Use __WXPALMOS__ for PalmOS port which fits __WX$(TOOLKIT)__ of bakefiles. Do not depend on MSW macros in PalmOS port. Source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
// - Mac when compiling with CodeWarrior (__WXMAC__)
|
||||
|
||||
const wxTextFileType wxTextBuffer::typeDefault =
|
||||
#if defined(__WINDOWS__) || defined(__DOS__)
|
||||
#if defined(__WINDOWS__) || defined(__DOS__) || defined(__PALMOS__)
|
||||
wxTextFileType_Dos;
|
||||
#elif defined(__UNIX__)
|
||||
wxTextFileType_Unix;
|
||||
@@ -77,7 +77,7 @@ wxString wxTextBuffer::Translate(const wxString& text, wxTextFileType type)
|
||||
return text;
|
||||
|
||||
// nor if it is empty
|
||||
if ( text.IsEmpty() )
|
||||
if ( text.empty() )
|
||||
return text;
|
||||
|
||||
wxString eol = GetEOL(type), result;
|
||||
@@ -170,7 +170,7 @@ bool wxTextBuffer::Create(const wxString& strBufferName)
|
||||
bool wxTextBuffer::Create()
|
||||
{
|
||||
// buffer name must be either given in ctor or in Create(const wxString&)
|
||||
wxASSERT( !m_strBufferName.IsEmpty() );
|
||||
wxASSERT( !m_strBufferName.empty() );
|
||||
|
||||
// if the buffer already exists do nothing
|
||||
if ( Exists() ) return false;
|
||||
@@ -192,7 +192,7 @@ bool wxTextBuffer::Open(const wxString& strBufferName, wxMBConv& conv)
|
||||
bool wxTextBuffer::Open(wxMBConv& conv)
|
||||
{
|
||||
// buffer name must be either given in ctor or in Open(const wxString&)
|
||||
wxASSERT( !m_strBufferName.IsEmpty() );
|
||||
wxASSERT( !m_strBufferName.empty() );
|
||||
|
||||
// open buffer in read-only mode
|
||||
if ( !OnOpen(m_strBufferName, ReadAccess) )
|
||||
|
Reference in New Issue
Block a user