diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-17 15:14:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-17 18:16:28 +0200 |
commit | 3ebbb150242cf049a9ddab7f498c63f3a44aa034 (patch) | |
tree | 3bdf235f490b173919369e7062570322effa795d /codemaker | |
parent | 73df133143daaff14c364468598bb250db6aecb1 (diff) |
loplugin:buffereadd find stuff involving adding *StringBuffer
and create conversion methods on *StringBuffer to make this work
Change-Id: I3cf5ee3e139826168894b46eff8ee4bcde00cb7e
Reviewed-on: https://gerrit.libreoffice.org/80949
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/javamaker/javatype.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/codemaker/source/javamaker/javatype.cxx b/codemaker/source/javamaker/javatype.cxx index 28d6081e8c8b..0616d8f08771 100644 --- a/codemaker/source/javamaker/javatype.cxx +++ b/codemaker/source/javamaker/javatype.cxx @@ -378,9 +378,7 @@ void MethodDescriptor::addTypeParameter(OUString const & name) { } OString MethodDescriptor::getDescriptor() const { - OStringBuffer buf(m_descriptorStart); - buf.append(m_descriptorEnd); - return buf.makeStringAndClear(); + return rtl::OStringView(m_descriptorStart) + m_descriptorEnd; } |