Change wxRichTextParagraph::m_cachedLines data type to vector
Now wxRichTextParagraph::m_cachedLines is stored as a wxVector instead of a wxList. See #2523, closes #2577.
This commit is contained in:
committed by
Vadim Zeitlin
parent
151a9c5a63
commit
8aa5c55f61
@@ -4475,7 +4475,7 @@ protected:
|
||||
#endif
|
||||
};
|
||||
|
||||
WX_DECLARE_LIST_WITH_DECL( wxRichTextLine, wxRichTextLineList , class WXDLLIMPEXP_RICHTEXT );
|
||||
typedef wxVector<wxRichTextLine*> wxRichTextLineVector;
|
||||
|
||||
/**
|
||||
@class wxRichTextParagraph
|
||||
@@ -4528,7 +4528,7 @@ public:
|
||||
/**
|
||||
Returns the cached lines.
|
||||
*/
|
||||
wxRichTextLineList& GetLines() { return m_cachedLines; }
|
||||
const wxRichTextLineVector& GetLines() const { return m_cachedLines; }
|
||||
|
||||
// Operations
|
||||
|
||||
@@ -4653,8 +4653,7 @@ public:
|
||||
protected:
|
||||
|
||||
// The lines that make up the wrapped paragraph
|
||||
wxRichTextLineList m_cachedLines;
|
||||
wxVector<wxRichTextLine*> m_cachedLinesVect;
|
||||
wxRichTextLineVector m_cachedLines;
|
||||
|
||||
// Whether the paragraph is impacted by floating objects from above
|
||||
int m_impactedByFloatingObjects;
|
||||
|
||||
Reference in New Issue
Block a user