mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:56:55 +02:00
Coding standard
This commit is contained in:
parent
76d6c6cac5
commit
b2dd53ac43
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue