From 7067d930c8390203f49d989b502e4b4ba85f463d Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 31 Oct 2014 15:28:41 +0100 Subject: coverity#735311 Unchecked return value assert if fouled Change-Id: Id3a160ff08907cc7792e93eea9f91997bcc0e2c3 --- sc/source/core/data/documen3.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index 453c8d6d6758..c5602d99d5df 100644 --- a/sc/source/core/data/documen3.cxx +++ b/sc/source/core/data/documen3.cxx @@ -137,7 +137,8 @@ void ScDocument::SetAllRangeNames( const boost::ptr_map& { const ScRangeName* pName = itr->second; SCTAB nTab; - GetTable(itr->first, nTab); + bool bFound = GetTable(itr->first, nTab); + assert(bFound); (void)bFound; // fouled up? if (pName->empty()) SetRangeName( nTab, NULL ); else -- cgit