Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da1c605b authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Use get instead of implicit cast on Return<*>. am: dc5f84f9 am: 3c875754

am: 90bd6301

Change-Id: I26932ebcf1cc003de372276349fdc9cfe545189c
parents 80a06a35 90bd6301
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -108,7 +108,13 @@ Return<void> Foo::callMe(
              "should block for %" PRId64 " seconds", cb.get(),
              DELAY_S);
        c[1] = systemTime();
        bool answer = cb->heyItsYouIsntIt(cb);
        Return<bool> ret = cb->heyItsYouIsntIt(cb);
        if (!ret.isOk()) {
            ALOGE("SERVER(Foo) callMe %p encountered transport error (%d).",
                  cb.get(), ret.getStatus().exceptionCode());
            return Void();
        }
        bool answer = ret.get();
        c[1] = systemTime() - c[1];
        ALOGI("SERVER(Foo) callMe %p IFooCallback::heyItsYouIsntIt " \
              "responded with %d after %" PRId64 "ns", cb.get(), answer, c[1]);