summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-01-27 11:36:16 +0100
committerJan Holesovsky <kendy@collabora.com>2014-01-27 11:41:15 +0100
commit68ba6ddef50ec4aa92f55fa610c84c9f0d134e67 (patch)
tree525a9305d01cbad1279f600f89f7415ba908ffec /codemaker
parentdf2ad69d5df350636c1eb1772b16a2e203a88fa7 (diff)
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
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/cppumaker/cpputype.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx
index d3898d993b1b..7af4fb4b32d9 100644
--- a/codemaker/source/cppumaker/cpputype.cxx
+++ b/codemaker/source/cppumaker/cpputype.cxx
@@ -3484,9 +3484,11 @@ void ServiceType::dumpHxxFile(
o << indent()
<< ("throw ::css::uno::DeploymentException("
"::rtl::OUString( "
- "\"component context fails to supply service ")
- << name_ << " of type " << baseName
- << ": \" ) + the_exception.Message, the_context);\n";
+ "\"component context fails to supply service \" ) + ")
+ << "\"" << name_ << "\" + "
+ << "\" of type \" + "
+ << "\"" << baseName << "\" + "
+ << "\": \" + the_exception.Message, the_context);\n";
dec();
o << indent() << "}\n" << indent()
<< "if (!the_instance.is()) {\n";
@@ -3494,9 +3496,11 @@ void ServiceType::dumpHxxFile(
o << indent()
<< ("throw ::css::uno::DeploymentException("
"::rtl::OUString( "
- "\"component context fails to supply service ")
- << name_ << " of type " << baseName
- << "\" ), the_context);\n";
+ "\"component context fails to supply service \" ) + ")
+ << "\"" << name_ << "\" + "
+ << "\" of type \" + "
+ << "\"" << baseName << "\""
+ << ", the_context);\n";
dec();
o << indent() << "}\n" << indent() << "return the_instance;\n";
dec();