summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2013-10-18 11:04:11 -0700
committer Mathieu Chartier <mathieuc@google.com> 2013-10-18 11:04:31 -0700
commit6ecb7a9a27c96e50525de2bc5c78391bf401bf72 (patch)
treeb9729eac897ac662881b6d9937db8066cc5bf485
parentac6e036a787de7582ec1556038f7170b3a020fcb (diff)
Fix whitespace issues after casts.
Change-Id: Ief3e50fbedd193e22509aac783f16ba1288908de
-rw-r--r--core/jni/android/graphics/Graphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/jni/android/graphics/Graphics.cpp b/core/jni/android/graphics/Graphics.cpp
index 939ee4fcd677..6a26f0af6291 100644
--- a/core/jni/android/graphics/Graphics.cpp
+++ b/core/jni/android/graphics/Graphics.cpp
@@ -495,7 +495,7 @@ jbyteArray GraphicsJNI::allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap,
gVMRuntime_newNonMovableArray,
gByte_class, size);
if (arrayObj) {
- jbyte* addr = (jbyte*)env->CallLongMethod(gVMRuntime, gVMRuntime_addressOf, arrayObj);
+ jbyte* addr = (jbyte*) env->CallLongMethod(gVMRuntime, gVMRuntime_addressOf, arrayObj);
if (addr) {
SkPixelRef* pr = new AndroidPixelRef(env, (void*) addr, size, arrayObj, ctable);
bitmap->setPixelRef(pr)->unref();
@@ -552,7 +552,7 @@ static jclass make_globalref(JNIEnv* env, const char classname[])
{
jclass c = env->FindClass(classname);
SkASSERT(c);
- return (jclass)env->NewGlobalRef(c);
+ return (jclass) env->NewGlobalRef(c);
}
static jfieldID getFieldIDCheck(JNIEnv* env, jclass clazz,
@@ -614,7 +614,7 @@ int register_android_graphics_Graphics(JNIEnv* env)
"(II)V");
c = env->FindClass("java/lang/Byte");
- gByte_class = (jclass)env->NewGlobalRef(
+ gByte_class = (jclass) env->NewGlobalRef(
env->GetStaticObjectField(c, env->GetStaticFieldID(c, "TYPE", "Ljava/lang/Class;")));
gVMRuntime_class = make_globalref(env, "dalvik/system/VMRuntime");