mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed some Android compiler warnings
This commit is contained in:
parent
645a538001
commit
670f77f80c
37 changed files with 170 additions and 169 deletions
|
|
@ -424,7 +424,7 @@ private:
|
|||
startThread();
|
||||
}
|
||||
|
||||
~ConnectionThread()
|
||||
~ConnectionThread() override
|
||||
{
|
||||
webInputStream->cancel();
|
||||
signalThreadShouldExit();
|
||||
|
|
@ -559,11 +559,11 @@ private:
|
|||
|
||||
LocalRef<jclass> responseClass (env->FindClass ("android/webkit/WebResourceResponse"));
|
||||
|
||||
if (responseClass != 0)
|
||||
if (responseClass != nullptr)
|
||||
{
|
||||
jmethodID method = env->GetMethodID (responseClass, "getReasonPhrase", "()Ljava/lang/String;");
|
||||
|
||||
if (method != 0)
|
||||
if (method != nullptr)
|
||||
{
|
||||
auto errorString = LocalRef<jstring> ((jstring) env->CallObjectMethod (errorResponse, method));
|
||||
|
||||
|
|
@ -671,7 +671,7 @@ void WebBrowserComponent::checkWindowAssociation()
|
|||
// page to avoid this, (and send it back when it's made visible again).
|
||||
|
||||
blankPageShown = true;
|
||||
browser->goToURL ("about:blank", 0, 0);
|
||||
browser->goToURL ("about:blank", nullptr, nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -711,7 +711,7 @@ void WebBrowserComponent::clearCookies()
|
|||
auto cookieManager = LocalRef<jobject> (env->CallStaticObjectMethod (AndroidCookieManager,
|
||||
AndroidCookieManager.getInstance));
|
||||
|
||||
jmethodID clearCookiesMethod = 0;
|
||||
jmethodID clearCookiesMethod = nullptr;
|
||||
|
||||
if (getAndroidSDKVersion() >= 21)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue