X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60ec1c877872398f6a9ba5b9f84225082062de7a..1663c65500c557d53e94493b7cf59331852c064d:/utils/HelpGen/src/srcparser.cpp diff --git a/utils/HelpGen/src/srcparser.cpp b/utils/HelpGen/src/srcparser.cpp index 22959ba056..cbcc869658 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" @@ -24,9 +20,6 @@ #include "wx/wx.h" #endif -#ifndef __DARWIN__ -# include -#endif #include #include "srcparser.h" @@ -123,7 +116,7 @@ wxString spComment::GetText() const spContext::spContext() - : mpParent ( NULL ), + : m_pParent ( NULL ), mpFirstOccurence( NULL ), mAlreadySorted ( false ), @@ -231,14 +224,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 +239,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 +290,7 @@ void spContext::AddMember( spContext* pMember ) { mMembers.push_back( pMember ); - pMember->mpParent = this; + pMember->m_pParent = this; } void spContext::AddComment( spComment* pComment ) @@ -310,7 +303,7 @@ MMemberListT& spContext::GetMembers() return mMembers; } -spContext* spContext::FindContext( const string& identifier, +spContext* spContext::FindContext( const wxString& identifier, int contextType, bool searchSubMembers ) @@ -339,8 +332,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 +341,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 +372,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 *****/