diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-25 17:49:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-26 08:01:42 +0100 |
commit | 51b5b93092d6231615de470c62494c24e54828a1 (patch) | |
tree | 7d1556d834a9f61e0f40f29f318c57328cba67e7 /sfx2 | |
parent | b9fe4f26eaf1099b8d0907b8d9cbf52c86914466 (diff) |
remove some unused local vars
found by a more aggressive variant of loplugin:unusedvariables.
This is my first pass, committing the simplest and most obviously
unnecessary vars
Change-Id: I9676a6e39a101937097788548764506c93811c57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87414
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/versdlg.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/doc/doctemplates.cxx | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx index 900bdb50dd4b..7492e4e43aff 100644 --- a/sfx2/source/dialog/versdlg.cxx +++ b/sfx2/source/dialog/versdlg.cxx @@ -121,7 +121,6 @@ namespace const int nRest = rVersionBox.get_preferred_size().Width() - nMax; std::set<OUString> aAuthors; - SfxVersionInfo aInfo; aAuthors.insert(SvtUserOptions().GetFullName()); for (int i = 0; i < rVersionBox.n_children(); ++i) diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index 1247d6cfab88..02b5b7c7a10e 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -1675,7 +1675,7 @@ bool SfxDocTplService_Impl::storeTemplate( const OUString& rGroupName, // Check, whether or not there is a group with this name // Return false, if there is no group with the given name - Content aGroup, aTemplate, aTargetGroup, aTemplateToRemove; + Content aGroup, aTemplateToRemove; INetURLObject aGroupObj( maRootURL ); bool bRemoveOldTemplateContent = false; |