Remove mResName and remove the hardwire pathname "/data/data".
Make the code robust.
Change-Id: Ia49eda1885ace0f9603cc181ba95d4d63ab586fc
diff --git a/lib/ExecutionEngine/Compiler.h b/lib/ExecutionEngine/Compiler.h
index 597618f..472b85f 100644
--- a/lib/ExecutionEngine/Compiler.h
+++ b/lib/ExecutionEngine/Compiler.h
@@ -79,7 +79,7 @@
private:
- const char *mResName;
+ const char *mCachePath;
ScriptCompiled *mpResult;
@@ -104,8 +104,8 @@
static void GlobalInitialization();
- void setResName(const char *resName) {
- mResName = resName;
+ void setCachePath(const char *cachePath) {
+ mCachePath = cachePath;
return;
}