diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 10:39:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 10:46:48 +0100 |
commit | c7eb405d226e7594b5e9c6f62dab60c127b1167f (patch) | |
tree | 3d90207652c88d15476c5f8ae54a7022002ae404 /sw | |
parent | 63bfc8ab1038477bce0059e6b75982635527fcab (diff) |
coverity#1209529 Explicit null dereferenced
Change-Id: I3d5f1880deaa43fd4d40f456c0d265c18bb9b9c5
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/SwStyleNameMapper.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/doc/SwStyleNameMapper.cxx b/sw/source/core/doc/SwStyleNameMapper.cxx index 6bff57590f8c..deabe3ccf338 100644 --- a/sw/source/core/doc/SwStyleNameMapper.cxx +++ b/sw/source/core/doc/SwStyleNameMapper.cxx @@ -468,9 +468,7 @@ const NameToIdHash & SwStyleNameMapper::getHashTable ( SwGetPoolIdFromName eFlag break; default: { - // TODO: Is there a better way of failing here? - *pHashPointer = new NameToIdHash( 0 ); - return **pHashPointer; + assert(false && "unknown pool family"); } break; } |