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:
@@ -17,6 +17,10 @@
|
|||||||
// headers
|
// headers
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma implementation "fontutil.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.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
|
// append the extension if none given and it's not an absolute file name
|
||||||
// (otherwise we assume that they know what they're doing)
|
// (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.Find('.') == wxNOT_FOUND )
|
||||||
{
|
{
|
||||||
m_strLocalFilename << ".ini";
|
m_strLocalFilename << ".ini";
|
||||||
@@ -88,7 +88,7 @@ void wxIniConfig::SetPath(const wxString& strPath)
|
|||||||
if ( strPath.IsEmpty() ) {
|
if ( strPath.IsEmpty() ) {
|
||||||
// nothing
|
// nothing
|
||||||
}
|
}
|
||||||
else if ( strPath[0u] == wxCONFIG_PATH_SEPARATOR ) {
|
else if ( strPath[(size_t) 0] == wxCONFIG_PATH_SEPARATOR ) {
|
||||||
// absolute path
|
// absolute path
|
||||||
wxSplitPath(aParts, strPath);
|
wxSplitPath(aParts, strPath);
|
||||||
}
|
}
|
||||||
@@ -107,7 +107,7 @@ void wxIniConfig::SetPath(const wxString& strPath)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// translate
|
// translate
|
||||||
m_strGroup = aParts[0u];
|
m_strGroup = aParts[(size_t) 0];
|
||||||
for ( size_t nPart = 1; nPart < nPartsCount; nPart++ ) {
|
for ( size_t nPart = 1; nPart < nPartsCount; nPart++ ) {
|
||||||
if ( nPart > 1 )
|
if ( nPart > 1 )
|
||||||
m_strPath << PATH_SEP_REPLACE;
|
m_strPath << PATH_SEP_REPLACE;
|
||||||
|
@@ -9,6 +9,10 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma implementation "menu.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
@@ -318,7 +318,7 @@ wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& ext)
|
|||||||
{
|
{
|
||||||
// add the leading point if necessary
|
// add the leading point if necessary
|
||||||
wxString str;
|
wxString str;
|
||||||
if ( ext[0u] != wxT('.') ) {
|
if ( ext[(size_t) 0] != wxT('.') ) {
|
||||||
str = wxT('.');
|
str = wxT('.');
|
||||||
}
|
}
|
||||||
str << ext;
|
str << ext;
|
||||||
|
Reference in New Issue
Block a user