1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

Added fake placeholder versions of the new c++0x 'noexcept' and 'nullptr' keywords, and altered the library classes to use these instead of 'throw()' and '0'. This shouldn't make any difference at all to existing code, but will enable better static checking with future c++0x compilers.

This commit is contained in:
Julian Storer 2011-04-07 13:49:01 +01:00
parent e0a38a30db
commit f04309f44a
533 changed files with 13927 additions and 13931 deletions

View file

@ -66,7 +66,7 @@ const Image ImageFileFormat::loadFrom (InputStream& input)
{
ImageFileFormat* const format = findImageFormatForStream (input);
if (format != 0)
if (format != nullptr)
return format->decodeImage (input);
return Image::null;
@ -76,7 +76,7 @@ const Image ImageFileFormat::loadFrom (const File& file)
{
InputStream* const in = file.createInputStream();
if (in != 0)
if (in != nullptr)
{
BufferedInputStream b (in, 8192, true);
return loadFrom (b);
@ -87,7 +87,7 @@ const Image ImageFileFormat::loadFrom (const File& file)
const Image ImageFileFormat::loadFrom (const void* rawData, const int numBytes)
{
if (rawData != 0 && numBytes > 4)
if (rawData != nullptr && numBytes > 4)
{
MemoryInputStream stream (rawData, numBytes, false);
return loadFrom (stream);