diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-12 16:00:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-12 16:05:32 +0200 |
commit | 802f2a420859f6787c86a960aa331245423d5820 (patch) | |
tree | 7bb46760ca0371c958a4a36c966d253f2c59383c /codemaker/source/javamaker | |
parent | e510e9893d5ce99c8dfa9478d6972469fcc339d2 (diff) |
Don't allow O[U]StringBuffer in string concatenation
...as
OStringBuffer b("foo"); b = "bar" + b;
doesn't work as one might expect (see the mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2016-October/075464.html>
"concat of OUStringBuffer". That feature was LIBO_INTERNAL_ONLY, anyway. And
of the affected places, MethodDescriptor::getSignature
(codemaker/source/javamaker/javatype.cxx) was the only one that would actually
have benefitted.
Change-Id: Ib84266f43e40c42c2e428f0c0616db8cfa90adff
Diffstat (limited to 'codemaker/source/javamaker')
-rw-r--r-- | codemaker/source/javamaker/javatype.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codemaker/source/javamaker/javatype.cxx b/codemaker/source/javamaker/javatype.cxx index 06328a92b0cf..1d414a1d9150 100644 --- a/codemaker/source/javamaker/javatype.cxx +++ b/codemaker/source/javamaker/javatype.cxx @@ -329,7 +329,7 @@ public: OString getDescriptor() const; - OString getSignature() const { return m_needsSignature ? m_signatureStart + m_signatureEnd : OString();} + OString getSignature() const { return m_needsSignature ? m_signatureStart.toString() + m_signatureEnd : OString();} private: rtl::Reference< TypeManager > m_manager; |