Fix more krazy warnings.

This commit is contained in:
Friedemann Kleint
2011-04-19 15:42:14 +02:00
parent cca52b6d30
commit 774fa49412
66 changed files with 137 additions and 136 deletions

View File

@@ -369,7 +369,7 @@ public:
void operator()(quint32 offset)
{
_name = QString::null;
_name.clear();
_scope = 0;
_objectNode = 0;
_offset = offset;
@@ -551,7 +551,7 @@ public:
// find all idenfifier expressions, try to resolve them and check if the result is in scope
FindUsages findUsages(doc, snapshot, &contextCopy);
FindUsages::Result results = findUsages(name, scope);
foreach (AST::SourceLocation loc, results)
foreach (const AST::SourceLocation &loc, results)
usages.append(Usage(fileName, matchingLine(loc.offset, doc->source()), loc.startLine, loc.startColumn - 1, loc.length));
return usages;