X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60ec1c877872398f6a9ba5b9f84225082062de7a..c3b501e187fdb318911177e5ad90fea9e163a112:/utils/HelpGen/src/srcparser.cpp?ds=sidebyside diff --git a/utils/HelpGen/src/srcparser.cpp b/utils/HelpGen/src/srcparser.cpp index 22959ba056..b5e1268213 100644 --- a/utils/HelpGen/src/srcparser.cpp +++ b/utils/HelpGen/src/srcparser.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -# pragma implementation "srcparser.h" -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -123,7 +119,7 @@ wxString spComment::GetText() const spContext::spContext() - : mpParent ( NULL ), + : m_pParent ( NULL ), mpFirstOccurence( NULL ), mAlreadySorted ( false ), @@ -231,14 +227,14 @@ bool spContext::VitualContextHasChildren() return mVirtualContextHasChildren; } -string spContext::GetVirtualContextBody() +wxString spContext::GetVirtualContextBody() { wxASSERT( mIsVirtualContext ); return mVirtualContextBody; } -string spContext::GetFooterOfVirtualContextBody() +wxString spContext::GetFooterOfVirtualContextBody() { wxASSERT( mIsVirtualContext ); @@ -246,9 +242,9 @@ string spContext::GetFooterOfVirtualContextBody() } -void spContext::SetVirtualContextBody( const string& body, - bool hasChildren, - const string& footer ) +void spContext::SetVirtualContextBody( const wxString& body, + bool hasChildren, + const wxString& footer ) { mVirtualContextHasChildren = hasChildren; @@ -297,7 +293,7 @@ void spContext::AddMember( spContext* pMember ) { mMembers.push_back( pMember ); - pMember->mpParent = this; + pMember->m_pParent = this; } void spContext::AddComment( spComment* pComment ) @@ -310,7 +306,7 @@ MMemberListT& spContext::GetMembers() return mMembers; } -spContext* spContext::FindContext( const string& identifier, +spContext* spContext::FindContext( const wxString& identifier, int contextType, bool searchSubMembers ) @@ -339,8 +335,8 @@ spContext* spContext::FindContext( const string& identifier, void spContext::RemoveThisContext() { - if ( mpParent ) - mpParent->RemoveChild( this ); + if ( m_pParent ) + m_pParent->RemoveChild( this ); else // context should have a parent wxFAIL_MSG("Context should have a parent"); @@ -348,12 +344,12 @@ void spContext::RemoveThisContext() spContext* spContext::GetOutterContext() { - return mpParent; + return m_pParent; } bool spContext::HasOutterContext() { - return ( mpParent != 0 ); + return ( m_pParent != 0 ); } bool spContext::IsInFile() @@ -379,25 +375,25 @@ bool spContext::IsInOperation() spClass& spContext::GetClass() { wxASSERT( GetOutterContext()->GetType() == SP_CTX_CLASS ); - return *((spClass*)mpParent ); + return *((spClass*)m_pParent ); } spFile& spContext::GetFile() { wxASSERT( GetOutterContext()->GetType() == SP_CTX_FILE ); - return *((spFile*)mpParent ); + return *((spFile*)m_pParent ); } spNameSpace& spContext::GetNameSpace() { wxASSERT( GetOutterContext()->GetType() == SP_CTX_NAMESPACE ); - return *((spNameSpace*)mpParent ); + return *((spNameSpace*)m_pParent ); } spOperation& spContext::GetOperation() { wxASSERT( GetOutterContext()->GetType() == SP_CTX_OPERATION ); - return *((spOperation*)mpParent ); + return *((spOperation*)m_pParent ); } /***** Implementation for class spClass *****/