diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 14:04:24 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 14:04:24 -0800 |
commit | 43aa2b1cbf7a03e248e10f4d0fec0463257cd52d (patch) | |
tree | 419be3db269033df1a79ef96e10fe15be35ce27d /include/utils | |
parent | 0bb03408de8886e8d17013219967d42fb9c8cf8c (diff) | |
download | frameworks_native-43aa2b1cbf7a03e248e10f4d0fec0463257cd52d.zip frameworks_native-43aa2b1cbf7a03e248e10f4d0fec0463257cd52d.tar.gz frameworks_native-43aa2b1cbf7a03e248e10f4d0fec0463257cd52d.tar.bz2 |
auto import from //depot/cupcake/@132589
Diffstat (limited to 'include/utils')
-rw-r--r-- | include/utils/ResourceTypes.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/include/utils/ResourceTypes.h b/include/utils/ResourceTypes.h index 7d3fcf2..d83a33c 100644 --- a/include/utils/ResourceTypes.h +++ b/include/utils/ResourceTypes.h @@ -1101,22 +1101,16 @@ struct ResTable_config return false; } - // Return true if 'this' can be considered a match for the parameters in + // Return true if 'this' can be considered a match for the parameters in // 'settings'. - // Note this is asymetric. A default piece of data will match every request - // but a request for the default should not match odd specifics - // (ie, request with no mcc should not match a particular mcc's data) - // settings is the requested settings inline bool match(const ResTable_config& settings) const { if (imsi != 0) { - if ((settings.mcc != 0 && mcc != 0 - && mcc != settings.mcc) || - (settings.mcc == 0 && mcc != 0)) { + if (settings.mcc != 0 && mcc != 0 + && mcc != settings.mcc) { return false; } - if ((settings.mnc != 0 && mnc != 0 - && mnc != settings.mnc) || - (settings.mnc == 0 && mnc != 0)) { + if (settings.mnc != 0 && mnc != 0 + && mnc != settings.mnc) { return false; } } |