Change the constructor of CacheReader.
diff --git a/lib/bcc/Script.cpp b/lib/bcc/Script.cpp
index d9faf02..789fb01 100644
--- a/lib/bcc/Script.cpp
+++ b/lib/bcc/Script.cpp
@@ -192,7 +192,7 @@
return 1;
}
- CacheReader reader(this);
+ CacheReader reader;
// Dependencies
reader.addDependency(BCC_FILE_RESOURCE, pathLibBCC, sha1LibBCC);
@@ -204,7 +204,7 @@
}
// Read cache file
- ScriptCached *cached = reader.readCacheFile(&file);
+ ScriptCached *cached = reader.readCacheFile(&file, this);
if (!cached) {
return 1;
}