summaryrefslogtreecommitdiff
path: root/starmath/source/view.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-05 09:26:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-05 11:24:21 +0200
commit980cb24e1e94ed928b6db9e6b8b5ba377de2a574 (patch)
treeece36ce4b1200dc74a91f7b92ec9f08e255b03f5 /starmath/source/view.cxx
parent03dfa09886b6fd0ebda7abe7d5e142da172e8cc2 (diff)
loplugin:reducevarscope in starmath
Change-Id: I5d90de0d2fdab876899a6e072b7911921d691d14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103946 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source/view.cxx')
-rw-r--r--starmath/source/view.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index dd967232723b..43132079dd16 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1579,10 +1579,9 @@ void SmViewShell::Execute(SfxRequest& rReq)
{
TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard(GetEditWindow()) );
uno::Reference < io::XInputStream > xStrm;
- SotClipboardFormatId nId = SOT_FORMAT_SYSTEM_START; //dummy initialize to avoid warning
if ( aDataHelper.GetTransferable().is() )
{
- nId = SotClipboardFormatId::MATHML;
+ SotClipboardFormatId nId = SotClipboardFormatId::MATHML;
if (aDataHelper.HasFormat(nId))
{
xStrm = aDataHelper.GetInputStream(nId, "");