summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-01-08 03:34:57 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-01-08 03:35:43 +0900
commitff580eb39b46646309feba447f6bf485124db6b1 (patch)
tree5dbea85aed84589c0c1bd9859f487b9af0df7558 /vcl
parent5b031b4ea68df5ca210a5631c801414b476d8094 (diff)
catch exception by constant reference
Diffstat (limited to 'vcl')
-rw-r--r--vcl/aqua/source/gdi/salbmp.cxx2
-rw-r--r--vcl/ios/source/gdi/salbmp.cxx2
-rw-r--r--vcl/source/gdi/impimagetree.cxx4
-rw-r--r--vcl/source/glyphs/graphite_layout.cxx2
-rw-r--r--vcl/unx/gtk/gdi/salprn-gtk.cxx2
-rw-r--r--vcl/workben/svpclient.cxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/vcl/aqua/source/gdi/salbmp.cxx b/vcl/aqua/source/gdi/salbmp.cxx
index 6b2f8d19b097..65a132f4daa3 100644
--- a/vcl/aqua/source/gdi/salbmp.cxx
+++ b/vcl/aqua/source/gdi/salbmp.cxx
@@ -229,7 +229,7 @@ bool AquaSalBitmap::CreateContext()
32, nContextBytesPerRow, maPalette, maContextBuffer.get(),
mnBits, mnBytesPerRow, maPalette, maUserBuffer.get() );
}
- catch( std::bad_alloc )
+ catch( const std::bad_alloc& )
{
mxGraphicContext = 0;
}
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;
}
diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx
index 03442fcb9513..ef48f92a6fa4 100644
--- a/vcl/source/gdi/impimagetree.cxx
+++ b/vcl/source/gdi/impimagetree.cxx
@@ -231,7 +231,7 @@ bool ImplImageTree::doLoadImage(
found = find(paths, bitmap);
} catch (css::uno::RuntimeException &) {
throw;
- } catch (css::uno::Exception & e) {
+ } catch (const css::uno::Exception & e) {
OSL_TRACE(
"ImplImageTree::loadImage exception \"%s\"",
rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr());
@@ -368,7 +368,7 @@ bool ImplImageTree::find(
css::uno::UNO_QUERY_THROW);
} catch (css::uno::RuntimeException &) {
throw;
- } catch (css::uno::Exception & e) {
+ } catch (const css::uno::Exception & e) {
OSL_TRACE(
"ImplImageTree::find exception \"%s\"",
rtl::OUStringToOString(
diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx
index d39c292c164c..85a6751ac212 100644
--- a/vcl/source/glyphs/graphite_layout.cxx
+++ b/vcl/source/glyphs/graphite_layout.cxx
@@ -661,7 +661,7 @@ bool GraphiteLayout::LayoutGlyphs(ImplLayoutArgs& rArgs, gr_segment * pSegment)
mvCharDxs[mvCharDxs.size() - 1] = mnWidth;
}
}
- catch (std::exception &e)
+ catch (const std::exception &e)
{
#ifdef GRLAYOUT_DEBUG
fprintf(grLog(),"LayoutGlyphs failed %s\n", e.what());
diff --git a/vcl/unx/gtk/gdi/salprn-gtk.cxx b/vcl/unx/gtk/gdi/salprn-gtk.cxx
index 6f7df7b9cf56..8351575191d8 100644
--- a/vcl/unx/gtk/gdi/salprn-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salprn-gtk.cxx
@@ -1038,7 +1038,7 @@ void GtkPrintDialog::ExportAsPDF(const rtl::OUString &rFileURL, GtkPrintSettings
xView->getSelection() >>= aSelection;
}
}
- catch (uno::RuntimeException)
+ catch (const uno::RuntimeException &)
{
}
if (aSelection.hasValue())
diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx
index 47af3aaa8e30..dc0717c40f67 100644
--- a/vcl/workben/svpclient.cxx
+++ b/vcl/workben/svpclient.cxx
@@ -92,7 +92,7 @@ SAL_IMPLEMENT_MAIN()
if( xFactory.is() )
setProcessServiceFactory( xFactory );
}
- catch( com::sun::star::uno::Exception& rExc)
+ catch(const com::sun::star::uno::Exception&)
{
}