summaryrefslogtreecommitdiff
path: root/libs/hwui/GradientCache.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2015-01-06 00:50:52 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-01-06 00:50:53 +0000
commitb15f21effb8d5be988bb46eea00b6ff28222aa98 (patch)
tree1e972cc58de13661c5db8bf76d3b8d860a0bcfb4 /libs/hwui/GradientCache.cpp
parent578efef682cc2216db121bb88d2af977703ee6e2 (diff)
parentd41c4d8c732095ae99c955b6b82f7306633004b1 (diff)
Merge "Add overrides and switch to nullptr keyword for all files"
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
-rw-r--r--libs/hwui/GradientCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp
index 06d234c69783..0987d9beee46 100644
--- a/libs/hwui/GradientCache.cpp
+++ b/libs/hwui/GradientCache.cpp
@@ -66,7 +66,7 @@ GradientCache::GradientCache():
mCache(LruCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity),
mSize(0), mMaxSize(MB(DEFAULT_GRADIENT_CACHE_SIZE)) {
char property[PROPERTY_VALUE_MAX];
- if (property_get(PROPERTY_GRADIENT_CACHE_SIZE, property, NULL) > 0) {
+ if (property_get(PROPERTY_GRADIENT_CACHE_SIZE, property, nullptr) > 0) {
INIT_LOGD(" Setting gradient cache size to %sMB", property);
setMaxSize(MB(atof(property)));
} else {