X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dea36ef6d117e0562f0079345a77ff1696d3a49..758bce950ba9236d0a9edc4c880c3ec73b5173f3:/src/os2/iniconf.cpp?ds=sidebyside diff --git a/src/os2/iniconf.cpp b/src/os2/iniconf.cpp index 3b49835c8a..05bdb58dd6 100644 --- a/src/os2/iniconf.cpp +++ b/src/os2/iniconf.cpp @@ -21,7 +21,9 @@ #include #include + #include +#if wxUSE_CONFIG #include @@ -63,7 +65,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 +90,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 +109,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; @@ -461,3 +463,5 @@ bool wxIniConfig::RenameGroup(const wxString& oldName, const wxString& newName) // Not implemented return FALSE; } + +#endif //wxUSE_CONFIG