make the UNO generated catch clauses use const modifier
Change-Id: I2c9cdff2aeb97c8b9740aba91990e27315d5c85b
This commit is contained in:
parent
68a5b26425
commit
c98a1fa048
@ -3979,12 +3979,12 @@ sal_Bool ServiceType::dumpHxxFile(
|
|||||||
<< "\" ), the_context), ::com::sun::star::uno::UNO_QUERY);\n";
|
<< "\" ), the_context), ::com::sun::star::uno::UNO_QUERY);\n";
|
||||||
dec();
|
dec();
|
||||||
o << indent()
|
o << indent()
|
||||||
<< "} catch (::com::sun::star::uno::RuntimeException &) {\n";
|
<< "} catch (const ::com::sun::star::uno::RuntimeException &) {\n";
|
||||||
inc();
|
inc();
|
||||||
o << indent() << "throw;\n";
|
o << indent() << "throw;\n";
|
||||||
dec();
|
dec();
|
||||||
o << indent()
|
o << indent()
|
||||||
<< ("} catch (::com::sun::star::uno::Exception &"
|
<< ("} catch (const ::com::sun::star::uno::Exception &"
|
||||||
" the_exception) {\n");
|
" the_exception) {\n");
|
||||||
inc();
|
inc();
|
||||||
o << indent()
|
o << indent()
|
||||||
@ -4121,14 +4121,14 @@ sal_Bool ServiceType::dumpHxxFile(
|
|||||||
if (!tree.getRoot()->present) {
|
if (!tree.getRoot()->present) {
|
||||||
dec();
|
dec();
|
||||||
o << indent()
|
o << indent()
|
||||||
<< ("} catch (::com::sun::star::uno::RuntimeException &)"
|
<< ("} catch (const ::com::sun::star::uno::RuntimeException &)"
|
||||||
" {\n");
|
" {\n");
|
||||||
inc();
|
inc();
|
||||||
o << indent() << "throw;\n";
|
o << indent() << "throw;\n";
|
||||||
dec();
|
dec();
|
||||||
dumpCatchClauses(o, tree.getRoot());
|
dumpCatchClauses(o, tree.getRoot());
|
||||||
o << indent()
|
o << indent()
|
||||||
<< ("} catch (::com::sun::star::uno::Exception &"
|
<< ("} catch (const ::com::sun::star::uno::Exception &"
|
||||||
" the_exception) {\n");
|
" the_exception) {\n");
|
||||||
inc();
|
inc();
|
||||||
o << indent()
|
o << indent()
|
||||||
@ -4192,7 +4192,7 @@ void ServiceType::dumpCatchClauses(
|
|||||||
FileStream & out, codemaker::ExceptionTreeNode const * node)
|
FileStream & out, codemaker::ExceptionTreeNode const * node)
|
||||||
{
|
{
|
||||||
if (node->present) {
|
if (node->present) {
|
||||||
out << indent() << "} catch (";
|
out << indent() << "} catch (const ";
|
||||||
dumpType(out, node->name);
|
dumpType(out, node->name);
|
||||||
out << " &) {\n";
|
out << " &) {\n";
|
||||||
inc();
|
inc();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user