mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
JNI: Tidying
This commit is contained in:
parent
99d8b9b5e1
commit
8ce1f19bf0
9 changed files with 60 additions and 63 deletions
|
|
@ -1146,7 +1146,7 @@ public:
|
|||
|
||||
auto* env = getEnv();
|
||||
|
||||
jclass audioManagerClass = env->FindClass ("android/media/AudioManager");
|
||||
LocalRef<jclass> audioManagerClass { env->FindClass ("android/media/AudioManager") };
|
||||
|
||||
// We should be really entering here only if API supports it.
|
||||
jassert (audioManagerClass != nullptr);
|
||||
|
|
@ -1202,7 +1202,7 @@ public:
|
|||
|
||||
void addDevice (const LocalRef<jobject>& device, JNIEnv* env)
|
||||
{
|
||||
auto deviceClass = LocalRef<jclass> ((jclass) env->FindClass ("android/media/AudioDeviceInfo"));
|
||||
LocalRef<jclass> deviceClass { env->FindClass ("android/media/AudioDeviceInfo") };
|
||||
|
||||
jmethodID getProductNameMethod = env->GetMethodID (deviceClass, "getProductName",
|
||||
"()Ljava/lang/CharSequence;");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue