summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-10 21:37:22 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-10 12:15:42 +0000
commit536d0e27f05d9db7469bd8a3571c87b2ea885367 (patch)
tree304d45792300b026f22a26db6c748def48d979ec /svtools
parent36ccb37eee589c444445ab2d05a5c0dff6585a2f (diff)
Cleanup FontCharMapPtr variable prefixes
Change-Id: Ib106b91ab71ee45d5ad469d0beaf4ebaef8b57e1 Reviewed-on: https://gerrit.libreoffice.org/21306 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/sampletext.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/misc/sampletext.cxx b/svtools/source/misc/sampletext.cxx
index 031536162e9d..4ba252b5702c 100644
--- a/svtools/source/misc/sampletext.cxx
+++ b/svtools/source/misc/sampletext.cxx
@@ -165,8 +165,8 @@ OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice &rDevice)
if (!bOpenSymbol)
{
- FontCharMapPtr pFontCharMap;
- bool bHasCharMap = rDevice.GetFontCharMap(pFontCharMap);
+ FontCharMapPtr xFontCharMap;
+ bool bHasCharMap = rDevice.GetFontCharMap(xFontCharMap);
if( bHasCharMap )
{
// use some sample characters available in the font
@@ -176,7 +176,7 @@ OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice &rDevice)
sal_uInt32 cNewChar = 0xFF00;
const int nMaxCount = sizeof(aText)/sizeof(*aText) - 1;
- int nSkip = pFontCharMap->GetCharCount() / nMaxCount;
+ int nSkip = xFontCharMap->GetCharCount() / nMaxCount;
if( nSkip > 10 )
nSkip = 10;
else if( nSkip <= 0 )
@@ -185,7 +185,7 @@ OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice &rDevice)
{
sal_uInt32 cOldChar = cNewChar;
for( int j = nSkip; --j >= 0; )
- cNewChar = pFontCharMap->GetPrevChar( cNewChar );
+ cNewChar = xFontCharMap->GetPrevChar( cNewChar );
if( cOldChar == cNewChar )
break;
aText[ i ] = static_cast<sal_Unicode>(cNewChar); // TODO: support UCS4 samples
@@ -195,7 +195,7 @@ OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice &rDevice)
return OUString(aText);
}
- pFontCharMap = nullptr;
+ xFontCharMap = nullptr;
}
static const sal_Unicode aImplSymbolFontText[] = {