From 8dabfc9d1b5afb3b414451942045a5fda7694a72 Mon Sep 17 00:00:00 2001 From: vng Date: Sun, 16 Jun 2013 14:18:37 +0200 Subject: [PATCH] [android] Fix compilation. --- platform/platform_android.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/platform/platform_android.cpp b/platform/platform_android.cpp index 351e11326a..f24b22a0ca 100644 --- a/platform/platform_android.cpp +++ b/platform/platform_android.cpp @@ -43,22 +43,24 @@ void Platform::GetFilesByRegExp(string const & directory, string const & regexp, if (ZipFileReader::IsZip(directory)) { // Get files list inside zip file - FilesList fList; + typedef ZipFileReader::FileListT FilesT; + FilesT fList; ZipFileReader::FilesList(directory, fList); regexp::RegExpT exp; regexp::Create(regexp, exp); - for (FilesList::iterator it = fList.begin(); it != fList.end(); ++it) + for (FilesT::iterator it = fList.begin(); it != fList.end(); ++it) { - if (regexp::IsExist(*it, exp)) + string & name = it->first; + if (regexp::IsExist(name, exp)) { // Remove assets/ prefix - clean files are needed for fonts white/blacklisting logic size_t const ASSETS_LENGTH = 7; - if (it->find("assets/") == 0) - it->erase(0, ASSETS_LENGTH); + if (name.find("assets/") == 0) + name.erase(0, ASSETS_LENGTH); - res.push_back(*it); + res.push_back(name); } } }