summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/registry
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-04 12:28:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-04 13:15:29 +0000
commit2dfc4c0845c72b3a1cf19546a1606907f36eea42 (patch)
tree8df986c777d2b6847782a4395af50fbca5eea96f /desktop/source/deployment/registry
parent859204a52351c4d5d146e8b22d14bd4a44f294e9 (diff)
loplugin:oncevar in desktop..filter
Change-Id: I21c47cacbcd68f06eea7ccbbfa6d04fc65e2b7ee Reviewed-on: https://gerrit.libreoffice.org/30564 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/deployment/registry')
-rw-r--r--desktop/source/deployment/registry/dp_backend.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx
index a7ca243e3d89..4b81c5e51197 100644
--- a/desktop/source/deployment/registry/dp_backend.cxx
+++ b/desktop/source/deployment/registry/dp_backend.cxx
@@ -268,8 +268,6 @@ void PackageRegistryBackend::deleteUnusedFolders(
// get all temp directories:
::std::vector<OUString> tempEntries;
- const char tmp[] = ".tmp";
-
while (xResultSet->next())
{
OUString title(
@@ -277,7 +275,7 @@ void PackageRegistryBackend::deleteUnusedFolders(
xResultSet, UNO_QUERY_THROW )->getString(
1 /* Title */ ) );
- if (title.endsWith(tmp))
+ if (title.endsWith(".tmp"))
tempEntries.push_back(
makeURLAppendSysPathSegment(sDataFolder, title));
}