1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +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

@ -32,7 +32,7 @@
#define JUCE_DEBUG_XERRORS 1
#endif
Display* display = 0;
Display* display = nullptr;
Window juce_messageWindowHandle = None;
XContext windowHandleXContext; // This is referenced from Windowing.cpp
@ -158,7 +158,7 @@ private:
int bytesInSocket;
int totalEventCount;
int getWaitHandle() const throw() { return fd[1]; }
int getWaitHandle() const noexcept { return fd[1]; }
static bool setNonBlocking (int handle)
{
@ -214,7 +214,7 @@ private:
{
const Message::Ptr msg (popNextMessage());
if (msg == 0)
if (msg == nullptr)
return false;
if (msg->intParameter1 == MessageThreadFuncCall::uniqueID)
@ -375,7 +375,7 @@ void MessageManager::doPlatformSpecificShutdown()
XCloseDisplay (display);
juce_messageWindowHandle = 0;
display = 0;
display = nullptr;
LinuxErrorHandling::removeXErrorHandlers();
}