summaryrefslogtreecommitdiff
path: root/svtools/source/misc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-14 09:44:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-14 11:18:21 +0200
commit2d009c405714934ae5f95f4131510cb4e9c2493f (patch)
tree33670e0adb62d646a3e7ecdfadee92e25222be22 /svtools/source/misc
parentbdd97cb83e09225905a6272caf91579a0a77d3c2 (diff)
loplugin:moveit
Change-Id: I2702e716dc669ffbb870d36d060e110288d7a744 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137043 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/misc')
-rw-r--r--svtools/source/misc/templatefoldercache.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index d92d22d62686..532174b7e10e 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -353,8 +353,7 @@ namespace svt
{
OUString sURL = m_rStorage.ReadUniOrByteString(m_rStorage.GetStreamCharSet());
sURL = m_xOfficeInstDirs->makeAbsoluteURL( sURL );
- INetURLObject aChildURL( sURL );
- rChildren.push_back( new TemplateContent( aChildURL ) );
+ rChildren.push_back( new TemplateContent( INetURLObject( sURL ) ) );
}
// their content
@@ -568,7 +567,7 @@ namespace svt
INetURLObject aSubContentURL( xContentAccess->queryContentIdentifierString() );
// a new content instance
- ::rtl::Reference< TemplateContent > xChild = new TemplateContent( aSubContentURL );
+ ::rtl::Reference< TemplateContent > xChild = new TemplateContent( std::move(aSubContentURL) );
// the modified date
xChild->setModDate( xRow->getTimestamp( 2 ) ); // date modified