diff options
author | Noel Grandin <noel@peralex.com> | 2013-03-05 11:48:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-03-07 08:23:41 +0200 |
commit | c98a1fa04884c7fa34dfeb5e2eae706e57c09123 (patch) | |
tree | cf000524ba83f39204e38acbaf7f67b9a6cefc11 /codemaker/source | |
parent | 68a5b26425ce97f099fdd002c358acf4aba86a97 (diff) |
make the UNO generated catch clauses use const modifier
Change-Id: I2c9cdff2aeb97c8b9740aba91990e27315d5c85b
Diffstat (limited to 'codemaker/source')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index 641408e49b38..29516c8cab8f 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -3979,12 +3979,12 @@ sal_Bool ServiceType::dumpHxxFile( << "\" ), the_context), ::com::sun::star::uno::UNO_QUERY);\n"; dec(); o << indent() - << "} catch (::com::sun::star::uno::RuntimeException &) {\n"; + << "} catch (const ::com::sun::star::uno::RuntimeException &) {\n"; inc(); o << indent() << "throw;\n"; dec(); o << indent() - << ("} catch (::com::sun::star::uno::Exception &" + << ("} catch (const ::com::sun::star::uno::Exception &" " the_exception) {\n"); inc(); o << indent() @@ -4121,14 +4121,14 @@ sal_Bool ServiceType::dumpHxxFile( if (!tree.getRoot()->present) { dec(); o << indent() - << ("} catch (::com::sun::star::uno::RuntimeException &)" + << ("} catch (const ::com::sun::star::uno::RuntimeException &)" " {\n"); inc(); o << indent() << "throw;\n"; dec(); dumpCatchClauses(o, tree.getRoot()); o << indent() - << ("} catch (::com::sun::star::uno::Exception &" + << ("} catch (const ::com::sun::star::uno::Exception &" " the_exception) {\n"); inc(); o << indent() @@ -4192,7 +4192,7 @@ void ServiceType::dumpCatchClauses( FileStream & out, codemaker::ExceptionTreeNode const * node) { if (node->present) { - out << indent() << "} catch ("; + out << indent() << "} catch (const "; dumpType(out, node->name); out << " &) {\n"; inc(); |