mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-01 03:10:06 +00:00
More 'nullptr' updates and minor clean-ups.
This commit is contained in:
parent
46c3a6bbe5
commit
b047d9be53
113 changed files with 560 additions and 663 deletions
|
|
@ -373,7 +373,7 @@ public:
|
|||
|
||||
void* getNativeWindowHandle() const
|
||||
{
|
||||
return nativeWindow != nullptr ? nativeWindow->getNativeHandle() : 0;
|
||||
return nativeWindow != nullptr ? nativeWindow->getNativeHandle() : nullptr;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -496,12 +496,12 @@ OpenGLContext* OpenGLComponent::createContext()
|
|||
contextToShareListsWith != nullptr ? (HGLRC) contextToShareListsWith->getRawContext() : 0,
|
||||
preferredPixelFormat));
|
||||
|
||||
return (c->renderContext != 0) ? c.release() : 0;
|
||||
return (c->renderContext != 0) ? c.release() : nullptr;
|
||||
}
|
||||
|
||||
void* OpenGLComponent::getNativeWindowHandle() const
|
||||
{
|
||||
return context != nullptr ? static_cast<WindowedGLContext*> (static_cast<OpenGLContext*> (context))->getNativeWindowHandle() : 0;
|
||||
return context != nullptr ? static_cast<WindowedGLContext*> (static_cast<OpenGLContext*> (context))->getNativeWindowHandle() : nullptr;
|
||||
}
|
||||
|
||||
void juce_glViewport (const int w, const int h)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue