mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +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
|
|
@ -66,7 +66,7 @@ Component* CameraDevice::createViewerComponent()
|
|||
{
|
||||
// TODO
|
||||
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const String CameraDevice::getFileExtension()
|
||||
|
|
@ -115,7 +115,7 @@ CameraDevice* CameraDevice::openDevice (int index,
|
|||
{
|
||||
// TODO
|
||||
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ public:
|
|||
const Rectangle<int> bounds (left, top, right - left, bottom - top);
|
||||
|
||||
if (bounds.isEmpty())
|
||||
return 0;
|
||||
return nullptr;
|
||||
|
||||
jint* const maskDataElements = env->GetIntArrayElements (maskData, 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ int MidiOutput::getDefaultDeviceIndex()
|
|||
|
||||
MidiOutput* MidiOutput::openDevice (int index)
|
||||
{
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
MidiOutput::~MidiOutput()
|
||||
|
|
@ -100,7 +100,7 @@ const StringArray MidiInput::getDevices()
|
|||
|
||||
MidiInput* MidiInput::openDevice (int index, MidiInputCallback* callback)
|
||||
{
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -326,7 +326,7 @@ public:
|
|||
if (threads[i] == thisThread)
|
||||
return envs[i];
|
||||
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
enum { maxThreads = 16 };
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ InputStream* URL::createNativeStream (const String& address, bool isPost, const
|
|||
progressCallback, progressCallbackContext,
|
||||
headers, timeOutMs, responseHeaders));
|
||||
|
||||
return wi->stream != 0 ? wi.release() : 0;
|
||||
return wi->stream != 0 ? wi.release() : nullptr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -32,12 +32,12 @@
|
|||
// TODO
|
||||
OpenGLContext* OpenGLComponent::createContext()
|
||||
{
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void* OpenGLComponent::getNativeWindowHandle() const
|
||||
{
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void juce_glViewport (const int w, const int h)
|
||||
|
|
|
|||
|
|
@ -433,7 +433,7 @@ public:
|
|||
return ap;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static ModifierKeys currentModifiers;
|
||||
|
|
@ -608,7 +608,7 @@ bool JUCE_CALLTYPE NativeMessageBox::showOkCancelBox (AlertWindow::AlertIconType
|
|||
|
||||
android.activity.callVoidMethod (android.showOkCancelBox, javaString (title).get(), javaString (message).get(),
|
||||
(jlong) (pointer_sized_int) callback);
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
int JUCE_CALLTYPE NativeMessageBox::showYesNoCancelBox (AlertWindow::AlertIconType iconType,
|
||||
|
|
@ -673,8 +673,8 @@ const Image juce_createIconForFile (const File& file)
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
void* MouseCursor::createMouseCursorFromImage (const Image&, int, int) { return 0; }
|
||||
void* MouseCursor::createStandardMouseCursor (const MouseCursor::StandardCursorType) { return 0; }
|
||||
void* MouseCursor::createMouseCursorFromImage (const Image&, int, int) { return nullptr; }
|
||||
void* MouseCursor::createStandardMouseCursor (const MouseCursor::StandardCursorType) { return nullptr; }
|
||||
void MouseCursor::deleteMouseCursor (void* const /*cursorHandle*/, const bool /*isStandard*/) {}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue