summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2010-12-20 11:05:18 -0800
committerMathias Agopian <mathias@google.com>2011-01-16 17:34:07 -0800
commit58bac9e797941974a1ed4bf2a5ffe2f2752e9f5a (patch)
tree04d2549a56001fbb4d32192a99601a59eaabf1cb /libs
parent4a2e478a5bf6b4650181d1dfa643eadcc387fcec (diff)
downloadframeworks_base-58bac9e797941974a1ed4bf2a5ffe2f2752e9f5a.zip
frameworks_base-58bac9e797941974a1ed4bf2a5ffe2f2752e9f5a.tar.gz
frameworks_base-58bac9e797941974a1ed4bf2a5ffe2f2752e9f5a.tar.bz2
Fix the ISurfaceComposer onTransact switch.
Two of the cases in the ISurfaceComposer onTransact switch statement were missing 'break' statements at the end, and would fall through to the next case block. This change adds those break statements. Change-Id: I6dcc84263d3ea03d94612c667103283846b3dee1
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaceflinger_client/ISurfaceComposer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaceflinger_client/ISurfaceComposer.cpp b/libs/surfaceflinger_client/ISurfaceComposer.cpp
index 969ee79..a2a5455 100644
--- a/libs/surfaceflinger_client/ISurfaceComposer.cpp
+++ b/libs/surfaceflinger_client/ISurfaceComposer.cpp
@@ -247,13 +247,13 @@ status_t BnSurfaceComposer::onTransact(
int32_t mode = data.readInt32();
status_t res = turnElectronBeamOff(mode);
reply->writeInt32(res);
- }
+ } break;
case TURN_ELECTRON_BEAM_ON: {
CHECK_INTERFACE(ISurfaceComposer, data, reply);
int32_t mode = data.readInt32();
status_t res = turnElectronBeamOn(mode);
reply->writeInt32(res);
- }
+ } break;
default:
return BBinder::onTransact(code, data, reply, flags);
}