diff options
author | melikeyurtoglu <aysemelikeyurtoglu@gmail.com> | 2016-02-02 17:09:10 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-02-18 21:37:07 +0000 |
commit | 6e2de428a4910bb3c6dda45a59da09ed4a1889db (patch) | |
tree | a3ec839d7390977bb97b00a85c7f42e478f0eb56 /dbaccess/source | |
parent | 60d900254e93e8ac19fed3fa451b91c536efe930 (diff) |
tdf#57950 Replace chained O(U)StringBuffer::append() with operator+
Change-Id: I2576c997d5b82fd8bdfd0c9430c7a1e11d7e07df
Signed-off-by: melikeyurtoglu <aysemelikeyurtoglu@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/22049
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/core/dataaccess/documentcontainer.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx index ae5a17410883..8a95b71c8e2f 100644 --- a/dbaccess/source/core/dataaccess/documentcontainer.cxx +++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx @@ -644,11 +644,8 @@ OUString SAL_CALL ODocumentContainer::getHierarchicalName() throw (RuntimeExcept OUString SAL_CALL ODocumentContainer::composeHierarchicalName( const OUString& i_rRelativeName ) throw (IllegalArgumentException, NoSupportException, RuntimeException, std::exception) { - OUStringBuffer aBuffer; - aBuffer.append( getHierarchicalName() ); - aBuffer.append( '/' ); - aBuffer.append( i_rRelativeName ); - return aBuffer.makeStringAndClear(); + OUString aBuffer = getHierarchicalName() + "/" + i_rRelativeName; + return aBuffer; } ::rtl::Reference<OContentHelper> ODocumentContainer::getContent(const OUString& _sName) const |