summaryrefslogtreecommitdiff
path: root/sc/source/ui/navipi
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-09-08 22:11:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-09 08:25:30 +0200
commitf2517e82904b92989ed7e38a070c18234f460b33 (patch)
tree2b9bb63f3865670ad250f9fd706a577d1696d88f /sc/source/ui/navipi
parent1159f58831c69680e9f10767d5358e13b66579dd (diff)
improve loplugin:unusedvarsglobal
to find any global variable, was checking the wrong property of VarDecl Change-Id: I454b4e0c1701bb0771768a1ee10cd738c4ab0726 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102278 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/navipi')
-rw-r--r--sc/source/ui/navipi/content.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index b10cbcc7d615..6d45aed39a95 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -83,8 +83,6 @@ const OUStringLiteral aContentBmps[]=
u"" RID_BMP_CONTENT_DRAWING
};
-bool ScContentTree::bIsInDrag = false;
-
ScDocShell* ScContentTree::GetManualOrCurrent()
{
ScDocShell* pSh = nullptr;
@@ -1232,7 +1230,6 @@ IMPL_LINK(ScContentTree, DragBeginHdl, bool&, rUnsetDragIcon, bool)
bool bDisallow = true;
std::unique_ptr<ScDocumentLoader> pDocLoader;
- bIsInDrag = true;
ScModule* pScMod = SC_MOD();
@@ -1376,8 +1373,6 @@ IMPL_LINK(ScContentTree, DragBeginHdl, bool&, rUnsetDragIcon, bool)
}
}
- bIsInDrag = false; // static member
-
return bDisallow;
}