diff options
author | Eike Rathke <erack@redhat.com> | 2013-10-30 14:34:08 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-10-30 14:37:45 +0100 |
commit | 2d326986605def918ec846458441d4a49550a141 (patch) | |
tree | 9eecb6d198831173331c4b6fb11599328ebd8654 | |
parent | Let's use typedef for this. (diff) | |
download | core-2d326986605def918ec846458441d4a49550a141.tar.gz core-2d326986605def918ec846458441d4a49550a141.zip |
real assert() to bail out on invalid index
... instead of displaying a message and then silently poking memory that
we don't own. Now that globstr.hrc is renumbered it makes sense to
prevent future inconsistencies.
Change-Id: I7458fbca4928b33fc7471820aeea7882a0f71e50
-rw-r--r-- | sc/source/core/data/global.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx index f6a376befc22..09b2c506dd51 100644 --- a/sc/source/core/data/global.cxx +++ b/sc/source/core/data/global.cxx @@ -346,7 +346,7 @@ void ScGlobal::SetUserList( const ScUserList* pNewList ) const OUString& ScGlobal::GetRscString( sal_uInt16 nIndex ) { - OSL_ENSURE( nIndex < SC_GLOBSTR_STR_COUNT, "ScGlobal::GetRscString - invalid string index"); + assert( nIndex < SC_GLOBSTR_STR_COUNT); if( !ppRscString[ nIndex ] ) { OpCode eOp = ocNone; |