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
This commit is contained in:
parent
2b75c8f219
commit
a4372af60a
@ -17,6 +17,10 @@
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation "fontutil.h"
|
||||
#endif
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user