diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 00:39:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 11:01:54 +0100 |
commit | 5f2880cb23fb875128440f159a6257f92d89dd1d (patch) | |
tree | 466322d7e4a3242984da1629fd253464ad53409e /formula/source | |
parent | 67b392a0621eaf4f9a3b0a99cc37109ca32263e8 (diff) |
ByteString -> rtl::OStringBuffer
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 5ac4aba165ab..8fd651225676 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -40,6 +40,7 @@ #include <com/sun/star/sheet/FormulaOpCodeMapEntry.hpp> #include <com/sun/star/sheet/FormulaMapGroup.hpp> #include <com/sun/star/sheet/FormulaMapGroupSpecialOffset.hpp> +#include <rtl/strbuf.hxx> #include <stdio.h> // ============================================================================= @@ -492,9 +493,11 @@ void FormulaCompiler::OpCodeMap::putOpCode( const String & rStr, const OpCode eO DBG_ASSERT( (mpTable[eOp].Len() == 0) || (mpTable[eOp] == rStr) || (eOp == ocCurrency) || (eOp == ocSep) || (eOp == ocArrayColSep) || (eOp == ocArrayRowSep), - ByteString( "OpCodeMap::putOpCode: reusing OpCode "). - Append( ByteString::CreateFromInt32( sal_Int32( eOp))).Append( " ("). - Append( ByteString( rStr, RTL_TEXTENCODING_ASCII_US)).Append( ')').GetBuffer()); + rtl::OStringBuffer( + RTL_CONSTASCII_STRINGPARAM("OpCodeMap::putOpCode: reusing OpCode ")). + append(sal_Int32(eOp)).append(RTL_CONSTASCII_STRINGPARAM(" (")). + append(rtl::OUStringToOString(rStr, RTL_TEXTENCODING_ASCII_US)). + append(')').getStr()); mpTable[eOp] = rStr; mpHashMap->insert( OpCodeHashMap::value_type( rStr, eOp)); } |