codemaker: Allow compiler to share these generated strings.
There is really no need to see tons of component context fails to supply service <something long> of type <something else long>: and component context fails to supply service <something long> of type <something else long> in the binary ;-) - let's split the strings to parts that the linker can share easily. Change-Id: I07f149a587c05985045028c3b6530c6efd081ff5
This commit is contained in:
parent
df2ad69d5d
commit
68ba6ddef5
@ -3484,9 +3484,11 @@ void ServiceType::dumpHxxFile(
|
|||||||
o << indent()
|
o << indent()
|
||||||
<< ("throw ::css::uno::DeploymentException("
|
<< ("throw ::css::uno::DeploymentException("
|
||||||
"::rtl::OUString( "
|
"::rtl::OUString( "
|
||||||
"\"component context fails to supply service ")
|
"\"component context fails to supply service \" ) + ")
|
||||||
<< name_ << " of type " << baseName
|
<< "\"" << name_ << "\" + "
|
||||||
<< ": \" ) + the_exception.Message, the_context);\n";
|
<< "\" of type \" + "
|
||||||
|
<< "\"" << baseName << "\" + "
|
||||||
|
<< "\": \" + the_exception.Message, the_context);\n";
|
||||||
dec();
|
dec();
|
||||||
o << indent() << "}\n" << indent()
|
o << indent() << "}\n" << indent()
|
||||||
<< "if (!the_instance.is()) {\n";
|
<< "if (!the_instance.is()) {\n";
|
||||||
@ -3494,9 +3496,11 @@ void ServiceType::dumpHxxFile(
|
|||||||
o << indent()
|
o << indent()
|
||||||
<< ("throw ::css::uno::DeploymentException("
|
<< ("throw ::css::uno::DeploymentException("
|
||||||
"::rtl::OUString( "
|
"::rtl::OUString( "
|
||||||
"\"component context fails to supply service ")
|
"\"component context fails to supply service \" ) + ")
|
||||||
<< name_ << " of type " << baseName
|
<< "\"" << name_ << "\" + "
|
||||||
<< "\" ), the_context);\n";
|
<< "\" of type \" + "
|
||||||
|
<< "\"" << baseName << "\""
|
||||||
|
<< ", the_context);\n";
|
||||||
dec();
|
dec();
|
||||||
o << indent() << "}\n" << indent() << "return the_instance;\n";
|
o << indent() << "}\n" << indent() << "return the_instance;\n";
|
||||||
dec();
|
dec();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user