summaryrefslogtreecommitdiff
path: root/sw/inc/SwStyleNameMapper.hxx
diff options
context:
space:
mode:
authorChris Laplante <mostthingsweb@gmail.com>2014-04-06 22:20:15 -0400
committerCaolán McNamara <caolanm@redhat.com>2014-04-09 10:23:27 +0000
commitd8802562be87fabbbe7502c2daf39b00aa17f5d0 (patch)
treec60e685af82d7dc5adce1e18e0c245ff0b5d255f /sw/inc/SwStyleNameMapper.hxx
parent9c51f5b80640034097457de9603f4ffa021e42ff (diff)
Fix and deduplicate the test code in SwStyleNameMapper::getHashTable.
The original test code didn't work because the same pool (GET_POOLID_TXTCOLL) was being used for every test ID. To cut down on duplication, I refactored the test code and created 'testNameTable', a protected method of SwStyleNameMapper. Change-Id: I8a28f136df2650ec2d246f10a8698e8f462c9973 Reviewed-on: https://gerrit.libreoffice.org/8877 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc/SwStyleNameMapper.hxx')
-rw-r--r--sw/inc/SwStyleNameMapper.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/inc/SwStyleNameMapper.hxx b/sw/inc/SwStyleNameMapper.hxx
index d80694271f5b..44569cadd144 100644
--- a/sw/inc/SwStyleNameMapper.hxx
+++ b/sw/inc/SwStyleNameMapper.hxx
@@ -124,6 +124,7 @@ protected:
static const OUString& getNameFromId(sal_uInt16 nId, const OUString &rName,
bool bProgName);
static const NameToIdHash& getHashTable ( SwGetPoolIdFromName, bool bProgName );
+ static void testNameTable( SwGetPoolIdFromName const nFamily, sal_uInt16 const nStartIndex, sal_uInt16 const nEndIndex );
public:
// This gets the UI Name from the programmatic name