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
|
|
@ -118,7 +118,7 @@ public:
|
|||
hasInitialised = true;
|
||||
}
|
||||
|
||||
~NativeContext()
|
||||
~NativeContext() override
|
||||
{
|
||||
auto env = getEnv();
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ public:
|
|||
}
|
||||
|
||||
// create the surface
|
||||
surface = eglCreateWindowSurface (display, config, window, 0);
|
||||
surface = eglCreateWindowSurface (display, config, window, nullptr);
|
||||
jassert (surface != EGL_NO_SURFACE);
|
||||
|
||||
ANativeWindow_release (window);
|
||||
|
|
@ -317,7 +317,7 @@ private:
|
|||
return false;
|
||||
}
|
||||
|
||||
if (! eglInitialize (display, 0, 0))
|
||||
if (! eglInitialize (display, nullptr, nullptr))
|
||||
{
|
||||
jassertfalse;
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ extern Array<AppInactivityCallback*> appBecomingInactiveCallbacks;
|
|||
// this prevents them from happening (which some messy locking behaviour)
|
||||
struct iOSBackgroundProcessCheck : public AppInactivityCallback
|
||||
{
|
||||
iOSBackgroundProcessCheck() { isBackgroundProcess(); appBecomingInactiveCallbacks.add (this); }
|
||||
~iOSBackgroundProcessCheck() { appBecomingInactiveCallbacks.removeAllInstancesOf (this); }
|
||||
iOSBackgroundProcessCheck() { isBackgroundProcess(); appBecomingInactiveCallbacks.add (this); }
|
||||
~iOSBackgroundProcessCheck() override { appBecomingInactiveCallbacks.removeAllInstancesOf (this); }
|
||||
|
||||
bool isBackgroundProcess()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue