Coding standard

This commit is contained in:
David Rowe 2015-04-09 08:37:24 -07:00
parent 76d6c6cac5
commit b2dd53ac43

View file

@ -29,8 +29,7 @@ Resource::Size Resource::Sysmem::allocateMemory(Byte** dataAllocated, Size size)
newSize = size; newSize = size;
try { try {
(*dataAllocated) = new Byte[newSize]; (*dataAllocated) = new Byte[newSize];
} } catch (const std::bad_alloc&) {
catch (const std::bad_alloc&) {
qWarning() << "Buffer::Sysmem::allocate() : Can't allocate a system memory buffer of " << newSize << "bytes. Fails to create the buffer Sysmem."; qWarning() << "Buffer::Sysmem::allocate() : Can't allocate a system memory buffer of " << newSize << "bytes. Fails to create the buffer Sysmem.";
return NOT_ALLOCATED; return NOT_ALLOCATED;
} }