From 365b5f7a9271e5fc503b10e6c17371d76643fc94 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 9 Jan 2012 20:20:00 +0100 Subject: "cache" is used only locally, so move it into scope Change-Id: I0ba45d5620a8e5a79fdc6a1854245a0bfcc489f0 Reviewed-by: Jonas Gastal Reviewed-by: Marius Storm-Olsen Reviewed-by: Joerg Bornemann --- qmake/project.cpp | 1 + qmake/project.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'qmake') diff --git a/qmake/project.cpp b/qmake/project.cpp index 308aba00b4..851534668b 100644 --- a/qmake/project.cpp +++ b/qmake/project.cpp @@ -1306,6 +1306,7 @@ QMakeProject::read(uchar cmd) cache_depth = Option::output_dir.mid(abs_cache.length()).count('/'); } if(!qmake_cache.isEmpty()) { + QHash cache; if(read(qmake_cache, cache)) { Option::mkfile::cachefile_depth = cache_depth; Option::mkfile::cachefile = qmake_cache; diff --git a/qmake/project.h b/qmake/project.h index ac3b2aab7a..823fa9c9d6 100644 --- a/qmake/project.h +++ b/qmake/project.h @@ -84,7 +84,7 @@ class QMakeProject QString pfile, cfile; QMakeProperty *prop; void reset(); - QHash vars, base_vars, cache; + QHash vars, base_vars; bool parse(const QString &text, QHash &place, int line_count=1); enum IncludeStatus { -- cgit v1.2.3