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

Commit 11a55db7 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Don't depend on String8 cast to C string [cas]

Bug: 295394788
Test: m checkbuild
Change-Id: I82c94f0a720957c443f92b030214c6d2c47bf009
parent d26b6cf3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ Return<bool> DescramblerImpl::requiresSecureDecoderComponent(
        return false;
    }

    return holder->requiresSecureDecoderComponent(String8(mime.c_str()));
    return holder->requiresSecureDecoderComponent(mime.c_str());
}

static inline bool validateRangeForSize(
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ Return<bool> DescramblerImpl::requiresSecureDecoderComponent(const hidl_string&
        return false;
    }

    return holder->requiresSecureDecoderComponent(String8(mime.c_str()));
    return holder->requiresSecureDecoderComponent(mime.c_str());
}

static inline bool validateRangeForSize(uint64_t offset, uint64_t length, uint64_t size) {
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ Return<bool> DescramblerImpl::requiresSecureDecoderComponent(const hidl_string&
        return false;
    }

    return holder->requiresSecureDecoderComponent(String8(mime.c_str()));
    return holder->requiresSecureDecoderComponent(mime.c_str());
}

static inline bool validateRangeForSize(uint64_t offset, uint64_t length, uint64_t size) {
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ ScopedAStatus DescramblerImpl::requiresSecureDecoderComponent(const string& in_m
        *_aidl_return = false;
    }

    *_aidl_return = holder->requiresSecureDecoderComponent(String8(in_mime.c_str()));
    *_aidl_return = holder->requiresSecureDecoderComponent(in_mime.c_str());
    return ScopedAStatus::ok();
}