]> git.saurik.com Git - android/aapt.git/blobdiff - Images.cpp
Use qsort_r_compat() as a portable wrapper for qsort_r().
[android/aapt.git] / Images.cpp
index 6402e3cb38d8ca6e0b3612a4e2efb9e244e2a581..2b9b056776dcd460343c82ad5bc499c14e98887e 100644 (file)
@@ -964,7 +964,7 @@ static void write_png(const char* imageName,
                  compression_type));
 }
 
-status_t preProcessImage(Bundle* bundle, const sp<AaptAssets>& assets,
+status_t preProcessImage(const Bundle* bundle, const sp<AaptAssets>& assets,
                          const sp<AaptFile>& file, String8* outNewLeafName)
 {
     String8 ext(file->getPath().getPathExtension());
@@ -1084,7 +1084,7 @@ bail:
     return error;
 }
 
-status_t preProcessImageToCache(Bundle* bundle, String8 source, String8 dest)
+status_t preProcessImageToCache(const Bundle* bundle, const String8& source, const String8& dest)
 {
     png_structp read_ptr = NULL;
     png_infop read_info = NULL;