projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compile fix for VC++ 5
[wxWidgets.git]
/
src
/
common
/
config.cpp
diff --git
a/src/common/config.cpp
b/src/common/config.cpp
index c0b5c8570065fd3bc767c8a358a7ab31083a388d..f93307ed0f113c7934dbd2c58c9ce961c5b4ed9e 100644
(file)
--- a/
src/common/config.cpp
+++ b/
src/common/config.cpp
@@
-23,10
+23,6
@@
#pragma hdrstop
#endif //__BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__
-#ifndef WX_PRECOMP
- #include "wx/defs.h"
-#endif
-
#if wxUSE_CONFIG && ((wxUSE_FILE && wxUSE_TEXTFILE) || defined(wxCONFIG_WIN32_NATIVE))
#include "wx/app.h"
#if wxUSE_CONFIG && ((wxUSE_FILE && wxUSE_TEXTFILE) || defined(wxCONFIG_WIN32_NATIVE))
#include "wx/app.h"
@@
-190,7
+186,7
@@
bool wxConfigBase::Read(const wxString& key, int *pi, int defVal) const
bool wxConfigBase::Write(const wxString& key, double val)
{
wxString str;
bool wxConfigBase::Write(const wxString& key, double val)
{
wxString str;
- str.Printf(
_
T("%f"), val);
+ str.Printf(
wx
T("%f"), val);
return Write(key, str);
}
return Write(key, str);
}
@@
-375,11
+371,11
@@
void wxSplitPath(wxArrayString& aParts, const wxChar *sz)
wxString strCurrent;
const wxChar *pc = sz;
for ( ;; ) {
wxString strCurrent;
const wxChar *pc = sz;
for ( ;; ) {
- if ( *pc ==
_
T('\0') || *pc == wxCONFIG_PATH_SEPARATOR ) {
- if ( strCurrent ==
_
T(".") ) {
+ if ( *pc ==
wx
T('\0') || *pc == wxCONFIG_PATH_SEPARATOR ) {
+ if ( strCurrent ==
wx
T(".") ) {
// ignore
}
// ignore
}
- else if ( strCurrent ==
_
T("..") ) {
+ else if ( strCurrent ==
wx
T("..") ) {
// go up one level
if ( aParts.IsEmpty() )
wxLogWarning(_("'%s' has extra '..', ignored."), sz);
// go up one level
if ( aParts.IsEmpty() )
wxLogWarning(_("'%s' has extra '..', ignored."), sz);
@@
-395,7
+391,7
@@
void wxSplitPath(wxArrayString& aParts, const wxChar *sz)
//else:
// could log an error here, but we prefer to ignore extra '/'
//else:
// could log an error here, but we prefer to ignore extra '/'
- if ( *pc ==
_
T('\0') )
+ if ( *pc ==
wx
T('\0') )
return;
}
else
return;
}
else