diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-26 03:38:13 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-26 03:38:50 +0900 |
commit | 5451e9c702afb7c570662c740b33f2481abb7cb1 (patch) | |
tree | ef491adee50b35a977830dc9431eb308434cce4e /shell | |
parent | bf2857d88af137ba15939d81970be92b0310c915 (diff) |
catch exception by constant reference
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/backends/desktopbe/desktopbackend.cxx | 2 | ||||
-rw-r--r-- | shell/source/tools/lngconvex/lngconvex.cxx | 2 | ||||
-rw-r--r-- | shell/source/unix/exec/shellexec.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/shell/source/backends/desktopbe/desktopbackend.cxx b/shell/source/backends/desktopbe/desktopbackend.cxx index 8bbe89feae3c..12f6471234a2 100644 --- a/shell/source/backends/desktopbe/desktopbackend.cxx +++ b/shell/source/backends/desktopbe/desktopbackend.cxx @@ -213,7 +213,7 @@ css::uno::Reference< css::uno::XInterface > createBackend( } catch (css::uno::RuntimeException &) { // Assuming these exceptions are real errors: throw; - } catch (css::uno::Exception & e) { + } catch (const css::uno::Exception & e) { // Assuming these exceptions indicate that the service is not installed: OSL_TRACE( "createInstance(%s) failed with %s", diff --git a/shell/source/tools/lngconvex/lngconvex.cxx b/shell/source/tools/lngconvex/lngconvex.cxx index aa95eec844de..91f270e2be9e 100644 --- a/shell/source/tools/lngconvex/lngconvex.cxx +++ b/shell/source/tools/lngconvex/lngconvex.cxx @@ -596,7 +596,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { std::cout << ex.what() << std::endl; } - catch(std::exception& ex) + catch(const std::exception& ex) { std::cout << ex.what() << std::endl; ShowUsage(); diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx index db4570f193d6..39eed5a33242 100644 --- a/shell/source/unix/exec/shellexec.cxx +++ b/shell/source/unix/exec/shellexec.cxx @@ -118,7 +118,7 @@ ShellExec::ShellExec( const Reference< XComponentContext >& xContext ) : m_aDesktopEnvironment = OUStringToOString(aDesktopEnvironment, RTL_TEXTENCODING_ASCII_US); } } - } catch (RuntimeException e) { + } catch (const RuntimeException &e) { } } |