From 853c2fc71a96755a9dee629fd5d0e1cff9a48034 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 22 Jan 2015 14:33:23 +0100 Subject: sal: try to avoid abuse of OUStringBuffer(int) ctor ... to avoid bugs like commit f0d6e0e1e21afd0adf5bd01d771b2d83d8f13a48. Change-Id: I1e41d421609e09bf62a7a04ba34f3a8e8d118fd3 --- xmloff/source/text/txtparai.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmloff') 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(m_nCount)); while( m_nCount-- ) sBuff.append( &m_c, 1 ); -- cgit