Diff of /src/PositionCache.h [53b226] .. [53be57]  Maximize  Restore

Switch to side-by-side view

--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -137,9 +137,12 @@
 struct TextSegment {
 	int start;
 	int length;
-	Representation *repr;
-	TextSegment(int start_=0, int length_=0, Representation *repr_=0) :
-		start(start_), length(length_), repr(repr_) {
+	Representation *representation;
+	TextSegment(int start_=0, int length_=0, Representation *representation_=0) :
+		start(start_), length(length_), representation(representation_) {
+	}
+	int end() const {
+		return start + length;
 	}
 };
 

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks