From a4372af60a7eed11d0deea8db2c7d0fdd75d2b76 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 23 Jan 2000 15:39:55 +0000 Subject: [PATCH] Added more '#pragma implementation' for gcc. Replaced wxString[0u] by wxString[(size_t) 0]: size_t is signed for EMX, so explicitly using '0u' causes problems. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/fontutil.cpp | 4 ++++ src/os2/iniconf.cpp | 6 +++--- src/os2/menu.cpp | 4 ++++ src/os2/mimetype.cpp | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/os2/fontutil.cpp b/src/os2/fontutil.cpp index 5f135b0327..a3444c5765 100644 --- a/src/os2/fontutil.cpp +++ b/src/os2/fontutil.cpp @@ -17,6 +17,10 @@ // headers // ---------------------------------------------------------------------------- +#ifdef __GNUG__ + #pragma implementation "fontutil.h" +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" diff --git a/src/os2/iniconf.cpp b/src/os2/iniconf.cpp index 3b49835c8a..68a8bab6ae 100644 --- a/src/os2/iniconf.cpp +++ b/src/os2/iniconf.cpp @@ -63,7 +63,7 @@ wxIniConfig::wxIniConfig(const wxString& strAppName, // append the extension if none given and it's not an absolute file name // (otherwise we assume that they know what they're doing) - if ( !wxIsPathSeparator(m_strLocalFilename[0u]) && + if ( !wxIsPathSeparator(m_strLocalFilename[(size_t) 0]) && m_strLocalFilename.Find('.') == wxNOT_FOUND ) { m_strLocalFilename << ".ini"; @@ -88,7 +88,7 @@ void wxIniConfig::SetPath(const wxString& strPath) if ( strPath.IsEmpty() ) { // nothing } - else if ( strPath[0u] == wxCONFIG_PATH_SEPARATOR ) { + else if ( strPath[(size_t) 0] == wxCONFIG_PATH_SEPARATOR ) { // absolute path wxSplitPath(aParts, strPath); } @@ -107,7 +107,7 @@ void wxIniConfig::SetPath(const wxString& strPath) } else { // translate - m_strGroup = aParts[0u]; + m_strGroup = aParts[(size_t) 0]; for ( size_t nPart = 1; nPart < nPartsCount; nPart++ ) { if ( nPart > 1 ) m_strPath << PATH_SEP_REPLACE; diff --git a/src/os2/menu.cpp b/src/os2/menu.cpp index 129f2e8d91..442525a8f6 100644 --- a/src/os2/menu.cpp +++ b/src/os2/menu.cpp @@ -9,6 +9,10 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#ifdef __GNUG__ + #pragma implementation "menu.h" +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" diff --git a/src/os2/mimetype.cpp b/src/os2/mimetype.cpp index bee950fe6d..28ba45db1f 100644 --- a/src/os2/mimetype.cpp +++ b/src/os2/mimetype.cpp @@ -318,7 +318,7 @@ wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& ext) { // add the leading point if necessary wxString str; - if ( ext[0u] != wxT('.') ) { + if ( ext[(size_t) 0] != wxT('.') ) { str = wxT('.'); } str << ext; -- 2.45.2