1
0
Fork 0
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:
Julian Storer 2011-04-07 22:20:25 +01:00
parent 46c3a6bbe5
commit b047d9be53
113 changed files with 560 additions and 663 deletions

View file

@ -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)