summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-26 10:10:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-26 13:03:37 +0000
commitb5d6f6f253115c2d5338e294b80d1f73cbfefbdc (patch)
tree5aff6e989024d85bbc37e358270fd477528e214a /vcl
parentd104ae713647da9b3fb9439fbea518aa20f25ee9 (diff)
can be const
Change-Id: Ib1149389ae332c66886611de244baa2d83af8869
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/outdev/textline.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx
index da1d15585d94..e7476b7785a7 100644
--- a/vcl/source/outdev/textline.cxx
+++ b/vcl/source/outdev/textline.cxx
@@ -591,7 +591,7 @@ void OutputDevice::ImplDrawStrikeoutChar( long nBaseX, long nBaseY,
return;
// prepare string for strikeout measurement
- char cStrikeoutChar = eStrikeout == STRIKEOUT_SLASH ? '/' : 'X';
+ const char cStrikeoutChar = eStrikeout == STRIKEOUT_SLASH ? '/' : 'X';
static const int nTestStrLen = 4;
static const int nMaxStrikeStrLen = 2048;
sal_Unicode aChars[nMaxStrikeStrLen+1]; // +1 for valgrind...