diff options
author | Eike Rathke <erack@redhat.com> | 2014-10-31 15:24:54 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-10-31 15:34:24 +0100 |
commit | 016636450ca2fd0675c2f32f28a30b154705584b (patch) | |
tree | 0b1f0849983873aeaa8731009cb4f49363e09149 /sc/source/ui/unoobj | |
parent | 36705670efc894094f9f987661fa8022bea2e01b (diff) |
coverity#735320 Unchecked return value
assert if fouled
Change-Id: I1bc38690c755b8bc6eab16c8aa33c8f568e0c854
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/nameuno.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index 54b4d9f1a85c..6f8e648f52eb 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -139,7 +139,8 @@ SCTAB ScNamedRangeObj::GetTab_Impl() ScDocument& rDoc = pDocShell->GetDocument(); SCTAB nTab; OUString sName = mxSheet->getName(); - rDoc.GetTable(sName, nTab); + bool bFound = rDoc.GetTable(sName, nTab); + assert(bFound); (void)bFound; // fouled up? return nTab; } else |