diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/attarray.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx index f32553720338..6c1a989dbf65 100644 --- a/sc/source/core/data/attarray.cxx +++ b/sc/source/core/data/attarray.cxx @@ -115,10 +115,12 @@ void ScAttrArray::TestData() const } if (nErr) { - ByteString aMsg = ByteString::CreateFromInt32(nErr); - aMsg += " errors in attribute array, column "; - aMsg += ByteString::CreateFromInt32(nCol); - OSL_FAIL( aMsg.GetBuffer() ); + rtl::OStringBuffer aMsg; + aMsg.append(static_cast<sal_Int32>(nErr)); + aMsg.append(RTL_CONSTASCII_STRINGPARAM( + " errors in attribute array, column ")); + aMsg.append(static_cast<sal_Int32>(nCol)); + OSL_FAIL(aMsg.getStr()); } } #endif |