From d8802562be87fabbbe7502c2daf39b00aa17f5d0 Mon Sep 17 00:00:00 2001 From: Chris Laplante Date: Sun, 6 Apr 2014 22:20:15 -0400 Subject: Fix and deduplicate the test code in SwStyleNameMapper::getHashTable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Caolán McNamara --- sw/inc/SwStyleNameMapper.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sw/inc/SwStyleNameMapper.hxx') 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 -- cgit