From ea8ed4dac5390935021b0ca579f33393ac50bd30 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 22 Mar 2013 15:47:37 -0400 Subject: ScDBDocFunc is now ScBaseCell-free. Change-Id: I666886c737b118b30faff6c3763d40c1c4b7fca7 --- sc/source/ui/docshell/dbdocfun.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx index a73b238fdcfa..6e9181566d46 100644 --- a/sc/source/ui/docshell/dbdocfun.cxx +++ b/sc/source/ui/docshell/dbdocfun.cxx @@ -39,7 +39,6 @@ #include "dpobject.hxx" #include "dpsave.hxx" #include "dociter.hxx" // for lcl_EmptyExcept -#include "cell.hxx" // for lcl_EmptyExcept #include "editable.hxx" #include "attrib.hxx" #include "drwlayer.hxx" @@ -1179,15 +1178,13 @@ namespace { bool lcl_EmptyExcept( ScDocument* pDoc, const ScRange& rRange, const ScRange& rExcept ) { ScCellIterator aIter( pDoc, rRange ); - ScBaseCell* pCell = aIter.GetFirst(); - while (pCell) + for (bool bHasCell = aIter.first(); bHasCell; bHasCell = aIter.next()) { - if ( !pCell->IsBlank() ) // real content? + if (!aIter.get().isEmpty()) // real content? { if (!rExcept.In(aIter.GetPos())) return false; // cell found } - pCell = aIter.GetNext(); } return true; // nothing found - empty -- cgit