From 46ee31b67d7ee1bd085fbc240502053caa3cf8fa Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 14 Dec 2016 10:11:49 -0800 Subject: ART: Move to libbase StringPrintf Remove ART's StringPrintf implementation. Fix up clients. Add missing includes where necessary. Test: m test-art-host Change-Id: I564038d5868595ac3bb88d641af1000cea940e5a --- runtime/mirror/array-inl.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'runtime/mirror/array-inl.h') diff --git a/runtime/mirror/array-inl.h b/runtime/mirror/array-inl.h index 7d7c1d7cfd..a5db0c0a8a 100644 --- a/runtime/mirror/array-inl.h +++ b/runtime/mirror/array-inl.h @@ -19,10 +19,11 @@ #include "array.h" +#include "android-base/stringprintf.h" + #include "base/bit_utils.h" #include "base/casts.h" #include "base/logging.h" -#include "base/stringprintf.h" #include "class-inl.h" #include "gc/heap-inl.h" #include "obj_ptr-inl.h" @@ -167,9 +168,9 @@ inline Array* Array::Alloc(Thread* self, #else // 32-bit. if (UNLIKELY(size == 0)) { - self->ThrowOutOfMemoryError(StringPrintf("%s of length %d would overflow", - array_class->PrettyDescriptor().c_str(), - component_count).c_str()); + self->ThrowOutOfMemoryError(android::base::StringPrintf("%s of length %d would overflow", + array_class->PrettyDescriptor().c_str(), + component_count).c_str()); return nullptr; } #endif -- cgit v1.2.3-59-g8ed1b