summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-09 20:30:23 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-10 11:57:12 +0100
commit5d3d7cd6568340cb6bd6243c8e0d73f4bc4fd5ed (patch)
treeed87359b7496f3d98c8fd5f164fc39e193d0b925 /sfx2/source/control
parent0afed1a48158cfc088b9cb60e609dac5515166fa (diff)
cid#1546281 COPY_INSTEAD_OF_MOVE
and cid#1546278 COPY_INSTEAD_OF_MOVE cid#1546276 COPY_INSTEAD_OF_MOVE cid#1546247 COPY_INSTEAD_OF_MOVE cid#1546244 COPY_INSTEAD_OF_MOVE cid#1546243 COPY_INSTEAD_OF_MOVE cid#1546220 COPY_INSTEAD_OF_MOVE cid#1546209 COPY_INSTEAD_OF_MOVE cid#1546207 COPY_INSTEAD_OF_MOVE cid#1546206 COPY_INSTEAD_OF_MOVE cid#1546205 COPY_INSTEAD_OF_MOVE cid#1546197 COPY_INSTEAD_OF_MOVE cid#1546180 COPY_INSTEAD_OF_MOVE cid#1546172 COPY_INSTEAD_OF_MOVE cid#1546165 COPY_INSTEAD_OF_MOVE cid#1546164 COPY_INSTEAD_OF_MOVE cid#1546158 COPY_INSTEAD_OF_MOVE cid#1546151 COPY_INSTEAD_OF_MOVE cid#1546135 COPY_INSTEAD_OF_MOVE cid#1546132 COPY_INSTEAD_OF_MOVE cid#1546129 COPY_INSTEAD_OF_MOVE cid#1546128 COPY_INSTEAD_OF_MOVE cid#1546122 COPY_INSTEAD_OF_MOVE cid#1546117 COPY_INSTEAD_OF_MOVE cid#1546113 COPY_INSTEAD_OF_MOVE cid#1546106 COPY_INSTEAD_OF_MOVE cid#1546099 COPY_INSTEAD_OF_MOVE cid#1546091 COPY_INSTEAD_OF_MOVE cid#1546085 COPY_INSTEAD_OF_MOVE cid#1546069 COPY_INSTEAD_OF_MOVE cid#1546063 COPY_INSTEAD_OF_MOVE cid#1546062 COPY_INSTEAD_OF_MOVE cid#1546058 COPY_INSTEAD_OF_MOVE cid#1546056 COPY_INSTEAD_OF_MOVE cid#1546051 COPY_INSTEAD_OF_MOVE cid#1546040 COPY_INSTEAD_OF_MOVE cid#1546030 COPY_INSTEAD_OF_MOVE cid#1546028 COPY_INSTEAD_OF_MOVE cid#1546015 COPY_INSTEAD_OF_MOVE cid#1546001 COPY_INSTEAD_OF_MOVE Change-Id: Ib954c92a300fc323b29f27880fdf8bc46ed98862 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160520 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/templatelocalview.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index bd5fd7f649c2..ada15399951e 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -116,17 +116,14 @@ void TemplateLocalView::Populate()
for (sal_uInt16 j = 0; j < nEntries; ++j)
{
- OUString aName = mpDocTemplates->GetName(i,j);
- OUString aURL = mpDocTemplates->GetPath(i,j);
-
TemplateItemProperties aProperties;
aProperties.nId = j+1;
aProperties.nDocId = j;
aProperties.nRegionId = i;
- aProperties.aName = aName;
- aProperties.aPath = aURL;
+ aProperties.aName = mpDocTemplates->GetName(i, j);
+ aProperties.aPath = mpDocTemplates->GetPath(i, j);
aProperties.aRegionName = aRegionName;
- aProperties.aThumbnail = TemplateLocalView::fetchThumbnail(aURL,
+ aProperties.aThumbnail = TemplateLocalView::fetchThumbnail(aProperties.aPath,
mnThumbnailWidth,
mnThumbnailHeight);