Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Forward declare in LineListWrap as much as possible.

  • Loading branch information...
commit 9532d97263d7745ce54082eb3a898f09185c6c8a 1 parent c7a41c5
@adamv adamv authored
Showing with 7 additions and 5 deletions.
  1. +4 −3 src/LineListWrap.cpp
  2. +3 −2 src/LineListWrap.h
View
7 src/LineListWrap.cpp
@@ -14,13 +14,14 @@
#include "LineListWrap.h"
#include <algorithm>
#include "Document.h"
+#include "FixedLine.h"
// Initializing static constants
const unsigned int LineListWrap::WINSIZE = 200;
-LineListWrap::LineListWrap(FixedLine& l, const DocumentWrapper& dw) : line(l), m_doc(dw), lastValidOffset(0), lastValidPos(0),
- firstLoadedPos(0), lastLoadedPos(0), offsetDiff(0), posDiff(0), avr_lineheight(0) {
-}
+LineListWrap::LineListWrap(FixedLine& l, const DocumentWrapper& dw):
+ line(l), m_doc(dw), lastValidOffset(0), lastValidPos(0),
+ firstLoadedPos(0), lastLoadedPos(0), offsetDiff(0), posDiff(0), avr_lineheight(0) {}
unsigned int LineListWrap::offset(unsigned int index) {
wxASSERT(0 <= index && index < textOffsets.size());
View
5 src/LineListWrap.h
@@ -15,8 +15,9 @@
#define __LINELISTWRAP_H__
#include "LineList.h"
-#include "FixedLine.h"
-#include "Catalyst.h"
+
+class FixedLine;
+class DocumentWrapper;
class LineListWrap : public LineList {
public:
Please sign in to comment.
Something went wrong with that request. Please try again.