summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-05 22:56:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-05-06 10:28:08 +0100
commitc6a56e0b7f36b247c6808e3c6640c47599c5b56e (patch)
treed8c7e3244b615e4b29ad0d69261efdbb0d878982 /vcl
parent2c8432dcafedff49c2d284d79c016216d230c9f4 (diff)
catch by const ref
Change-Id: I20da7ac6dddcc1905b3419df37dd19f162cd8998
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/gdi/salbmp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx
index 013bdd61d130..b8b9f42f9302 100644
--- a/vcl/unx/generic/gdi/salbmp.cxx
+++ b/vcl/unx/generic/gdi/salbmp.cxx
@@ -137,7 +137,7 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
{
pDIB = new BitmapBuffer;
}
- catch( std::bad_alloc& )
+ catch (const std::bad_alloc&)
{
pDIB = NULL;
}
@@ -187,7 +187,7 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
{
pDIB->mpBits = new sal_uInt8[ pDIB->mnScanlineSize * pDIB->mnHeight ];
}
- catch(std::bad_alloc&)
+ catch (const std::bad_alloc&)
{
delete pDIB;
pDIB = NULL;
@@ -705,7 +705,7 @@ bool X11SalBitmap::Create( const SalBitmap& rSSalBmp )
{
mpDIB->mpBits = new sal_uInt8[ mpDIB->mnScanlineSize * mpDIB->mnHeight ];
}
- catch( std::bad_alloc& )
+ catch (const std::bad_alloc&)
{
delete mpDIB;
mpDIB = NULL;