summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/dbdocimp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-11-29 17:19:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-11-29 17:19:32 +0100
commit34dda497cdf0b131381c5d728a89343455d9c7d8 (patch)
tree1920b8c031c525adfdb9bbcaa5e7051ed728a8aa /sc/source/ui/docshell/dbdocimp.cxx
parent1ba9b792ccd6a27b56709917374a1ea03c0a000a (diff)
Rewrite some (trivial) assignments inside if/while conditions: sc
Change-Id: Ia2dfbd64d63958d4f9c04e892cc7ebc250e9ca70
Diffstat (limited to 'sc/source/ui/docshell/dbdocimp.cxx')
-rw-r--r--sc/source/ui/docshell/dbdocimp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx
index 22f07c471680..408ae020ccd3 100644
--- a/sc/source/ui/docshell/dbdocimp.cxx
+++ b/sc/source/ui/docshell/dbdocimp.cxx
@@ -293,7 +293,8 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam,
// skip rows that are not selected
if ( !bDoSelection )
{
- if ( !(bEnd = !xRowSet->next()) )
+ bEnd = !xRowSet->next();
+ if ( !bEnd )
++nRowsRead;
}
else