diff options
author | Joe Onorato <joeo@google.com> | 2011-11-06 18:14:40 -0800 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2012-02-10 14:44:04 -0800 |
commit | 6e0f981e864be5365b07a8cdc6f23e983d7f7352 (patch) | |
tree | a8f0572d8d2298c91a11c0b6a598d337bad6e989 /tools | |
parent | d60ae7f6688ea83df536c2eb1101a74ae1914ac6 (diff) | |
download | frameworks_base-6e0f981e864be5365b07a8cdc6f23e983d7f7352.zip frameworks_base-6e0f981e864be5365b07a8cdc6f23e983d7f7352.tar.gz frameworks_base-6e0f981e864be5365b07a8cdc6f23e983d7f7352.tar.bz2 |
Was generating code that uses the wrong RpcData.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/aidl/Type.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/aidl/Type.cpp b/tools/aidl/Type.cpp index b84b3c4..bb80d50 100755 --- a/tools/aidl/Type.cpp +++ b/tools/aidl/Type.cpp @@ -1023,9 +1023,9 @@ void UserDataType::CreateFromRpcData(StatementBlock* addTo, Expression* k, Variable* v, Variable* data, Variable** cl) { - // RpcData _obj_XX = data.getRpcData(k); + // RpcData _obj = data.getRpcData(k); // if (_data_XX != null) - // v = CLASS.RPC_CREATOR.createFromParcel(parcel) + // v = CLASS.RPC_CREATOR.createFromParcel(_obj) // } else { // v = null; // } @@ -1039,7 +1039,7 @@ UserDataType::CreateFromRpcData(StatementBlock* addTo, Expression* k, Variable* IfStatement* ifpart = new IfStatement(); ifpart->expression = new Comparison(_obj, "!=", NULL_VALUE); ifpart->statements->Add(new Assignment(v, - new MethodCall(v->type, "RPC_CREATOR.createFromRpcData", 1, data))); + new MethodCall(v->type, "RPC_CREATOR.createFromRpcData", 1, _obj))); IfStatement* elsepart = new IfStatement(); ifpart->elseif = elsepart; |