if ( cur >= start )
{
string rettype = string( start, size_t( cur-start ) );
- rettype.Replace("WXDLLEXPORT ", ""); // FIXME just for now...
+ // FIXME just for now...
+ string::size_type pos = 0;
+ string toerase("WXDLLEXPORT ");
+ while((pos = rettype.find(toerase, pos)) != string::npos)
+ rettype.erase(pos, toerase.length());
pOp->mRetType = rettype;
}
if ( !pAttr )
continue;
- if ( !pAttr->mType )
+ if ( pAttr->mType.empty() )
pAttr->mType = type;
pAttr->mVisibility = mCurVis;
- if ( !!pAttr->mName )
+ if ( !pAttr->mName.empty() )
arrange_indirection_tokens_between( pAttr->mType, pAttr->mName );
}
{
FILE* fp = fopen( mFiles[i].c_str(), "w+t" );
- if ( int(fp) > 0 )
+ if ( fp != NULL )
{
fwrite( mContents[i].c_str(), sizeof(char), mContents[i].length(), fp );
{
FILE* fp = fopen( fname, fopenOptions );
- if ( (int)fp == -1 ) return 0;
+ if ( !fp ) return 0;
ScriptStream stm;
#include "wxstlvec.h"
#include "wx/string.h"
- // FIXME:: dirty!
- typedef wxString string;
+ #ifdef wxUSE_STD_STRING
+ using std::string;
+ #else
+ // FIXME:: dirty!
+ typedef wxString string;
+ #endif
#endif
#include "wxstlvec.h"
#include "wx/string.h"
- // FIXME:: dirty!
- #define string wxString
+ #ifdef wxUSE_STD_STRING
+ using std::string;
+ #else
+ // FIXME:: dirty!
+ #define string wxString
+ #endif
typedef WXSTL_VECTOR_SHALLOW_COPY(int) SPBlockListT;
FILE* fp = fopen( fname, "rt" );
- if ( (int)fp == -1 || !fp ) return NULL;
+ if ( !fp ) return NULL;
int sz = fread( mpFileBuf, 1, mFileBufSz, fp );
void spOperation::DumpThis(const wxString& indent) const
{
wxString protection;
- if ( !!mScope ) {
+ if ( !mScope.empty() ) {
switch ( mVisibility ) {
case SP_VIS_PUBLIC:
protection = "public";
#include "wx/string.h"
#include "wxstlvec.h"
- // FOR NOW:: quick n' dirty:
-
- #define string wxString
+ #ifdef wxUSE_STD_STRING
+ using std::string;
+ #else
+ // FOR NOW:: quick n' dirty:
+ #define string wxString
+ #endif
#endif