Commit ac87bca1 authored by Christian Kamm's avatar Christian Kamm

C++: Make Source::revision unsigned instead of int.

All places that use it deal with unsigned revisions:
* SemanticInfo::revision
* Document::revision
* CPPEditorWidget::editorRevision

Even though QTextDocument::revision is int.

Change-Id: I2b3a94056d15fd02539d14c7cec35511abed57b5
Reviewed-on: http://codereview.qt.nokia.com/2954Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
parent 1c3dab29
......@@ -2159,7 +2159,7 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
m_mutex.lock();
if (! source.force
&& m_lastSemanticInfo.revision == (unsigned)source.revision
&& m_lastSemanticInfo.revision == source.revision
&& m_lastSemanticInfo.doc
&& m_lastSemanticInfo.doc->translationUnit()->ast()
&& m_lastSemanticInfo.doc->fileName() == source.fileName) {
......
......@@ -92,7 +92,7 @@ public:
QString code;
int line;
int column;
int revision;
unsigned revision;
bool force;
Source()
......@@ -103,7 +103,7 @@ public:
const QString &fileName,
const QString &code,
int line, int column,
int revision)
unsigned revision)
: snapshot(snapshot), fileName(fileName),
code(code), line(line), column(column),
revision(revision), force(false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment