From 9b5dad13b56bdde7c40970351af3da3a2c3c9350 Mon Sep 17 00:00:00 2001 From: Noel Grandin <noel.grandin@collabora.co.uk> Date: Sun, 13 Oct 2019 08:47:47 +0200 Subject: loplugin:stringadd look for unnecessary temporaries which defeat the *StringConcat optimisation. Also make StringConcat conversions treat a nullptr as an empty string, to match the O*String(char*) constructors. Change-Id: If45f5b4b6a535c97bfeeacd9ec472a7603a52e5b Reviewed-on: https://gerrit.libreoffice.org/80724 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> --- idlc/inc/astsequence.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'idlc') diff --git a/idlc/inc/astsequence.hxx b/idlc/inc/astsequence.hxx index 229b17dbd2f7..2d65edbaba6c 100644 --- a/idlc/inc/astsequence.hxx +++ b/idlc/inc/astsequence.hxx @@ -25,7 +25,7 @@ class AstSequence : public AstType { public: AstSequence(AstType const * pMemberType, AstScope* pScope) - : AstType(NT_sequence, OString("[]")+pMemberType->getScopedName(), pScope) + : AstType(NT_sequence, OStringLiteral("[]")+pMemberType->getScopedName(), pScope) , m_pMemberType(pMemberType) {} -- cgit