diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-21 14:35:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-22 08:16:55 +0100 |
commit | 03fcb4aae62a9403f22ec3671b61555419d02514 (patch) | |
tree | 87d0a30c633d4171fad55df469531c12380aca0c /idlc/source/astdump.cxx | |
parent | 39b39f124a2bd6abe62e30bacac5d1326495d862 (diff) |
idlc: no need to store single OString objects on the heap
Change-Id: I26586ed643d34690b56e40691df9b493a34afa16
Reviewed-on: https://gerrit.libreoffice.org/65536
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc/source/astdump.cxx')
-rw-r--r-- | idlc/source/astdump.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/idlc/source/astdump.cxx b/idlc/source/astdump.cxx index f3e82bda03a0..6038c4af7997 100644 --- a/idlc/source/astdump.cxx +++ b/idlc/source/astdump.cxx @@ -406,14 +406,14 @@ void AstAttribute::dumpExceptions( const sal_Char* AstSequence::getRelativName() const { - if ( !m_pRelativName ) + if ( !m_xRelativName ) { - m_pRelativName.reset( new OString("[]") ); + m_xRelativName = OString("[]"); AstDeclaration const * pType = resolveTypedefs( m_pMemberType ); - *m_pRelativName += pType->getRelativName(); + *m_xRelativName += pType->getRelativName(); } - return m_pRelativName->getStr(); + return m_xRelativName->getStr(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |