summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-07-25 10:27:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-07-27 11:02:28 +0100
commit93f9a32cdf720ee76f56f987a1ded2fd89145659 (patch)
treeaec5db5970a272b0d60244c46e6c3939201159c3 /sc
parent80ee8f832f8247f9189270121fc4b3fe64a9be71 (diff)
cppcheck: noExplicitConstructor
Change-Id: Id0a6cd461b2ba56e3b9b944514f3b0d0eb75cc44
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/undo/undobase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx
index 63e201d3754e..eefce30f3ff1 100644
--- a/sc/source/ui/undo/undobase.cxx
+++ b/sc/source/ui/undo/undobase.cxx
@@ -104,7 +104,7 @@ namespace
ScDocument& m_rDoc;
bool m_bUndoEnabled;
public:
- DisableUndoGuard(ScDocShell *pDocShell)
+ explicit DisableUndoGuard(ScDocShell *pDocShell)
: m_rDoc(pDocShell->GetDocument())
, m_bUndoEnabled(m_rDoc.IsUndoEnabled())
{