bool sortContent
)
{
- mSiblingSkipped = FALSE;
- mChildSkipped = FALSE;
+ mSiblingSkipped = false;
+ mChildSkipped = false;
mContextMask = SP_CTX_ANY; // FIXME:: should be an arg.
if ( sortContent && !atContext.IsSorted() )
for( size_t i = 0; i != members.size(); ++i )
{
if ( mSiblingSkipped )
-
+
return;
if ( !mChildSkipped )
void spVisitor::SkipSiblings()
{
- mSiblingSkipped = TRUE;
+ mSiblingSkipped = true;
}
void spVisitor::SkipChildren()
{
- mChildSkipped = TRUE;
+ mChildSkipped = true;
}
void spVisitor::SetFilter( int contextMask )
: mpParent ( NULL ),
mpFirstOccurence( NULL ),
- mAlreadySorted ( FALSE ),
+ mAlreadySorted ( false ),
mSrcLineNo (-1),
mSrcOffset (-1),
mVisibility( SP_VIS_PRIVATE ),
- mIsVirtualContext ( FALSE ),
- mVirtualContextHasChildren( FALSE ),
+ mIsVirtualContext ( false ),
+ mVirtualContextHasChildren( false ),
mpUserData( NULL )
{}
void spContext::RemoveChildren()
{
for( size_t i = 0; i != mMembers.size(); ++i )
-
+
delete mMembers[i];
mMembers.erase( mMembers.begin(), mMembers.end() );
RemoveChildren();
for( size_t i = 0; i != mComments.size(); ++i )
-
+
delete mComments[i];
}
return;
}
- // the given child should exist on the parent's list
+ // the given child should exist on the parent's list
wxASSERT( 0 );
}
{
spContext* cur = this->GetParent();
- while ( cur && !(cur->GetContextType() & mask) )
-
+ while ( cur && !(cur->GetContextType() & mask) )
+
cur = cur->GetParent();
return cur;
}
-void spContext::SetVirtualContextBody( const string& body,
+void spContext::SetVirtualContextBody( const string& body,
bool hasChildren,
const string& footer )
{
// atuomaticllay becomes virtual context
- mIsVirtualContext = TRUE;
+ mIsVirtualContext = true;
}
string spContext::GetBody( spContext* pCtx )
{
- if ( ( pCtx == NULL || pCtx == this ) && mIsVirtualContext )
-
+ if ( ( pCtx == NULL || pCtx == this ) && mIsVirtualContext )
+
return mVirtualContextBody;
if ( GetParent() )
spContext* spContext::GetFirstOccurence()
{
- // this object should not itself be
+ // this object should not itself be
// the first occurence of the context
wxASSERT( mpFirstOccurence != 0 );
{
spContext& member = *mMembers[i];
- if ( member.GetName() == identifier &&
+ if ( member.GetName() == identifier &&
( contextType & member.GetContextType() )
)
if ( searchSubMembers )
{
- spContext* result =
+ spContext* result =
member.FindContext( identifier, contextType, 1 );
if ( result ) return result;
spOperation::spOperation()
- : mHasDefinition( FALSE )
+ : mHasDefinition( false )
{
mIsConstant =
mIsVirtual =
txt += mName;
txt += "( ";
txt += tags[TAG_BOLD].end;
-
+
for( size_t i = 0; i != mMembers.size(); ++i )
{
// DBG::
if ( i != 0 )
txt += ", ";
-
+
txt += tags[TAG_BOLD].start;
-
+
txt += param.mType;
txt += tags[TAG_BOLD].end;
size_t i = 0;
- while( i < mLine.length() && mLine[i] != '"' && mLine[i] != '<' )
-
+ while( i < mLine.length() && mLine[i] != '"' && mLine[i] != '<' )
+
++i;
++i;
size_t start = i;
- while( i < mLine.length() && mLine[i] != '"' && mLine[i] != '>' )
+ while( i < mLine.length() && mLine[i] != '"' && mLine[i] != '>' )
++i;
}
}
-void spContext::DumpThis(const wxString& indent) const
+void spContext::DumpThis(const wxString& WXUNUSED(indent)) const
{
wxFAIL_MSG("abstract base class can't be found in parser tree!");
}
static const wxCmdLineEntryDesc sg_cmdLineDesc[] =
{
- { wxCMD_LINE_OPTION, _T("u"), _T("use-display"), _T("display number to use (default 100)") },
+ { wxCMD_LINE_OPTION, _T("u"), _T("use-display"), _T("display number to use (default 100)"), (wxCmdLineParamType)0, 0 },
- { wxCMD_LINE_SWITCH, _T("h"), _T("help"), _T("displays help on the command line parameters") },
- { wxCMD_LINE_SWITCH, _T("v"), _T("version"), _T("print version") },
+ { wxCMD_LINE_SWITCH, _T("h"), _T("help"), _T("displays help on the command line parameters"), (wxCmdLineParamType)0, 0 },
+ { wxCMD_LINE_SWITCH, _T("v"), _T("version"), _T("print version"), (wxCmdLineParamType)0, 0 },
{ wxCMD_LINE_PARAM, NULL, NULL, _T("config file 1"), wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL },
- { wxCMD_LINE_NONE }
+ { wxCMD_LINE_NONE, NULL, NULL, NULL, (wxCmdLineParamType)0, 0 }
};
m_emulatorScreenSize = wxSize(w, h);
}
- if (!m_emulatorBackgroundBitmapName.IsEmpty())
+ if (!m_emulatorBackgroundBitmapName.empty())
{
wxString absoluteBackgroundBitmapName = rootPath + wxString(wxFILE_SEP_PATH) + m_emulatorBackgroundBitmapName;
if ( !wxFile::Exists(absoluteBackgroundBitmapName) )
wxString str;
// Try appVariableName
- if (!appVariableName.IsEmpty())
+ if (!appVariableName.empty())
{
str = wxGetenv(appVariableName);
- if (!str.IsEmpty())
+ if (!str.empty())
return str;
}
wxPathList pathList;
pathList.AddEnvList(wxT("PATH"));
str = pathList.FindAbsoluteValidPath(argv0);
- if (!str.IsEmpty())
+ if (!str.empty())
return wxPathOnly(str);
// Failed