aboutsummaryrefslogtreecommitdiff
path: root/en/devices/architecture/hidl-cpp/interfaces.html
diff options
context:
space:
mode:
Diffstat (limited to 'en/devices/architecture/hidl-cpp/interfaces.html')
-rw-r--r--en/devices/architecture/hidl-cpp/interfaces.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/en/devices/architecture/hidl-cpp/interfaces.html b/en/devices/architecture/hidl-cpp/interfaces.html
index 5047e8d0..285c22b5 100644
--- a/en/devices/architecture/hidl-cpp/interfaces.html
+++ b/en/devices/architecture/hidl-cpp/interfaces.html
@@ -101,9 +101,9 @@ later:</p>
<pre class="prettyprint">
::android::sp&lt;IFoo&gt; myFoo = new FooImpl();
-::android::sp&lt;IFoo&gt; myFoo = new FooAnotherImpl();
-myFoo-&gt;registerAsService();
-mySecondFoo-&gt;registerAsService("another_foo");
+::android::sp&lt;IFoo&gt; mySecondFoo = new FooAnotherImpl();
+status_t status = myFoo-&gt;registerAsService();
+status_t anotherStatus = mySecondFoo-&gt;registerAsService("another_foo");
</pre>
<p>The <code>hwservicemanager</code> treats the combination of