summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/editable.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-04 13:37:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-07 06:39:05 +0000
commit27513d4df50f6d18b585f4cbec6a4dd3f9b432cc (patch)
tree92b1d636fae62968195b253bc02f936968734c9a /sc/source/ui/docshell/editable.cxx
parent7f509501e9b042aeae0cdcc8e267550a45ab43c2 (diff)
loplugin:expandablemethods in sc
Change-Id: Ib417c5e978fca563f8c0ef0dbe6b9d50fead9828 Reviewed-on: https://gerrit.libreoffice.org/30566 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/docshell/editable.cxx')
-rw-r--r--sc/source/ui/docshell/editable.cxx22
1 files changed, 7 insertions, 15 deletions
diff --git a/sc/source/ui/docshell/editable.cxx b/sc/source/ui/docshell/editable.cxx
index aab817d0d04e..05d4f19ebc89 100644
--- a/sc/source/ui/docshell/editable.cxx
+++ b/sc/source/ui/docshell/editable.cxx
@@ -64,7 +64,13 @@ ScEditableTester::ScEditableTester( ScViewFunc* pView ) :
mbIsEditable(true),
mbOnlyMatrix(true)
{
- TestView( pView );
+ bool bThisMatrix;
+ if ( !pView->SelectionEditable( &bThisMatrix ) )
+ {
+ mbIsEditable = false;
+ if ( !bThisMatrix )
+ mbOnlyMatrix = false;
+ }
}
void ScEditableTester::TestBlock( ScDocument* pDoc, SCTAB nTab,
@@ -118,20 +124,6 @@ void ScEditableTester::TestSelection( ScDocument* pDoc, const ScMarkData& rMark
}
}
-void ScEditableTester::TestView( ScViewFunc* pView )
-{
- if (mbIsEditable || mbOnlyMatrix)
- {
- bool bThisMatrix;
- if ( !pView->SelectionEditable( &bThisMatrix ) )
- {
- mbIsEditable = false;
- if ( !bThisMatrix )
- mbOnlyMatrix = false;
- }
- }
-}
-
sal_uInt16 ScEditableTester::GetMessageId() const
{
if (mbIsEditable)