From ff580eb39b46646309feba447f6bf485124db6b1 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Sun, 8 Jan 2012 03:34:57 +0900 Subject: catch exception by constant reference --- vcl/ios/source/gdi/salbmp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/ios') diff --git a/vcl/ios/source/gdi/salbmp.cxx b/vcl/ios/source/gdi/salbmp.cxx index a88299c70c26..5a7b1450079d 100644 --- a/vcl/ios/source/gdi/salbmp.cxx +++ b/vcl/ios/source/gdi/salbmp.cxx @@ -229,7 +229,7 @@ bool IosSalBitmap::CreateContext() 32, nContextBytesPerRow, maPalette, maContextBuffer.get(), mnBits, mnBytesPerRow, maPalette, maUserBuffer.get() ); } - catch( std::bad_alloc ) + catch( const std::bad_alloc& ) { mxGraphicContext = 0; } -- cgit v1.2.3