diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-31 12:40:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-31 13:17:54 +0000 |
commit | 06babf60ce9edd17e02930e60b9afdc12b40b553 (patch) | |
tree | bfb4b8c397d99b7aa6f1fb8670d3b48f4074d242 /svx/source/dialog/svxbmpnumvalueset.cxx | |
parent | c8b09c0024cc8fb5444ca422d2ddf729a5117d1d (diff) |
loplugin:oncevar in svl..svx
Change-Id: I80b11a7b698de4b84d7a2f4c7dc62b2e4fd8bb01
Reviewed-on: https://gerrit.libreoffice.org/30438
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/dialog/svxbmpnumvalueset.cxx')
-rw-r--r-- | svx/source/dialog/svxbmpnumvalueset.cxx | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx b/svx/source/dialog/svxbmpnumvalueset.cxx index 02fb2e535f26..3c696d7a281b 100644 --- a/svx/source/dialog/svxbmpnumvalueset.cxx +++ b/svx/source/dialog/svxbmpnumvalueset.cxx @@ -64,13 +64,6 @@ using namespace com::sun::star::text; using namespace com::sun::star::container; using namespace com::sun::star::style; -static const sal_Char cNumberingType[] = "NumberingType"; -static const sal_Char cValue[] = "Value"; -static const sal_Char cParentNumbering[] = "ParentNumbering"; -static const sal_Char cPrefix[] = "Prefix"; -static const sal_Char cSuffix[] = "Suffix"; -static const sal_Char cBulletChar[] = "BulletChar"; -static const sal_Char cBulletFontName[] = "BulletFontName"; // The selection of bullets from the star symbol static const sal_Unicode aBulletTypes[] = @@ -200,7 +193,7 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) aOrgRect.TopLeft(), aRectSize, *pVDev ); // Now comes the text - const OUString sValue(cValue); + const OUString sValue("Value"); if( NumberingPageType::SINGLENUM == ePageType || NumberingPageType::BULLET == ePageType ) { @@ -280,17 +273,17 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) aParentNumberings[i] = 0; for(sal_Int32 nProperty = 0; nProperty < aLevel.getLength() - 1; nProperty++) { - if ( pValues[nProperty].Name == cNumberingType ) + if ( pValues[nProperty].Name == "NumberingType" ) pValues[nProperty].Value >>= aNumberingTypes[i]; - else if ( pValues[nProperty].Name == cBulletFontName ) + else if ( pValues[nProperty].Name == "BulletFontName" ) pValues[nProperty].Value >>= sFontNames[i]; - else if ( pValues[nProperty].Name == cBulletChar ) + else if ( pValues[nProperty].Name == "BulletChar" ) pValues[nProperty].Value >>= sBulletChars[i]; - else if ( pValues[nProperty].Name == cPrefix ) + else if ( pValues[nProperty].Name == "Prefix" ) pValues[nProperty].Value >>= sPrefixes[i]; - else if ( pValues[nProperty].Name == cSuffix ) + else if ( pValues[nProperty].Name == "Suffix" ) pValues[nProperty].Value >>= sSuffixes[i]; - else if ( pValues[nProperty].Name == cParentNumbering ) + else if ( pValues[nProperty].Name == "ParentNumbering" ) pValues[nProperty].Value >>= aParentNumberings[i]; } Sequence< PropertyValue > aProperties(2); |