Merge "Rename ZipEntryName to ZipString"

This commit is contained in:
Yusuke Sato
2015-06-29 17:49:28 +00:00
committed by Gerrit Code Review

View File

@@ -39,7 +39,7 @@ using namespace android;
class _ZipEntryRO { class _ZipEntryRO {
public: public:
ZipEntry entry; ZipEntry entry;
ZipEntryName name; ZipString name;
void *cookie; void *cookie;
_ZipEntryRO() : cookie(NULL) {} _ZipEntryRO() : cookie(NULL) {}
@@ -79,7 +79,7 @@ ZipEntryRO ZipFileRO::findEntryByName(const char* entryName) const
{ {
_ZipEntryRO* data = new _ZipEntryRO; _ZipEntryRO* data = new _ZipEntryRO;
data->name = ZipEntryName(entryName); data->name = ZipString(entryName);
const int32_t error = FindEntry(mHandle, data->name, &(data->entry)); const int32_t error = FindEntry(mHandle, data->name, &(data->entry));
if (error) { if (error) {
@@ -128,7 +128,8 @@ bool ZipFileRO::getEntryInfo(ZipEntryRO entry, uint16_t* pMethod,
bool ZipFileRO::startIteration(void** cookie) bool ZipFileRO::startIteration(void** cookie)
{ {
_ZipEntryRO* ze = new _ZipEntryRO; _ZipEntryRO* ze = new _ZipEntryRO;
int32_t error = StartIteration(mHandle, &(ze->cookie), NULL /* prefix */); int32_t error = StartIteration(mHandle, &(ze->cookie),
NULL /* prefix */, NULL /* suffix */);
if (error) { if (error) {
ALOGW("Could not start iteration over %s: %s", mFileName, ErrorCodeString(error)); ALOGW("Could not start iteration over %s: %s", mFileName, ErrorCodeString(error));
delete ze; delete ze;