summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-01-22 14:33:23 +0100
committerMichael Stahl <mstahl@redhat.com>2015-01-23 14:04:25 +0100
commit853c2fc71a96755a9dee629fd5d0e1cff9a48034 (patch)
treed4e6429ade20f5cc1a701932e70708ddb6b2fbf6 /xmloff
parentba68436e3fea34b4ae696f96f8048502865cdc79 (diff)
sal: try to avoid abuse of OUStringBuffer(int) ctor
... to avoid bugs like commit f0d6e0e1e21afd0adf5bd01d771b2d83d8f13a48. Change-Id: I1e41d421609e09bf62a7a04ba34f3a8e8d118fd3
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtparai.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index 7676d74c5fe8..b65135f0b5df 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -133,7 +133,7 @@ void XMLCharContext::EndElement()
}
else
{
- OUStringBuffer sBuff( m_nCount );
+ OUStringBuffer sBuff(static_cast<int>(m_nCount));
while( m_nCount-- )
sBuff.append( &m_c, 1 );