nothrow
fluxgen fluxgen
1 files changed,
5 insertions(+),
5 deletions(-)
jump to
M
src/FbTk/TextureRender.cc
→
src/FbTk/TextureRender.cc
@@ -1,5 +1,5 @@
// TextureRender.cc for fluxbox -// Copyright (c) 2002 - 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net) +// Copyright (c) 2002 - 2004 Henrik Kinnunen (fluxgen at users.sourceforge.net) // // from Image.cc for Blackbox - an X11 Window manager // Copyright (c) 1997 - 2000 Brad Hughes (bhughes at tcac.net)@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: TextureRender.cc,v 1.7 2004/01/21 14:16:41 fluxgen Exp $ +// $Id: TextureRender.cc,v 1.8 2004/01/21 20:19:50 fluxgen Exp $ #include "TextureRender.hh"@@ -59,7 +59,7 @@ cerr<<"TextureRender: Warning! Height > 3200 setting Height = 3200"<<endl;
height = 3200; } - red = new unsigned char[width * height]; + red = new(nothrow) unsigned char[width * height]; if (red == 0) { char sbuf[128]; sprintf(sbuf, "%d", width*height);@@ -67,14 +67,14 @@ throw string("TextureRender::TextureRender(): Out of memory while allocating red buffer."+ string(sbuf));
} - green = new unsigned char[width * height]; + green = new(nothrow) unsigned char[width * height]; if (green == 0) { char sbuf[128]; sprintf(sbuf, "%d", width*height); throw string("TextureRender::TextureRender(): Out of memory while allocating green buffer. size " + string(sbuf)); } - blue = new unsigned char[width * height]; + blue = new(nothrow) unsigned char[width * height]; if (blue == 0) { char sbuf[128]; sprintf(sbuf, "%d", width*height);