From 0ce09d9d8739b8c7e515127fc8dc9f95b5455dc8 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Fri, 21 May 2010 15:43:05 +0200
Subject: [PATCH] Added an optinal member `length' to
 Document::DiagnosticMessage.

---
 src/libs/cplusplus/CppDocument.h | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/libs/cplusplus/CppDocument.h b/src/libs/cplusplus/CppDocument.h
index 81fcc9181d3..cd784ed6427 100644
--- a/src/libs/cplusplus/CppDocument.h
+++ b/src/libs/cplusplus/CppDocument.h
@@ -138,12 +138,14 @@ public:
 
     public:
         DiagnosticMessage(int level, const QString &fileName,
-                          int line, int column,
-                          const QString &text)
+                          unsigned line, unsigned column,
+                          const QString &text,
+                          unsigned length = 0)
             : _level(level),
               _fileName(fileName),
               _line(line),
               _column(column),
+              _length(length),
               _text(text)
         { }
 
@@ -168,6 +170,9 @@ public:
         unsigned column() const
         { return _column; }
 
+        unsigned length() const
+        { return _length; }
+
         QString text() const
         { return _text; }
 
@@ -176,6 +181,7 @@ public:
         QString _fileName;
         unsigned _line;
         unsigned _column;
+        unsigned _length;
         QString _text;
     };
 
-- 
GitLab