diff options
Diffstat (limited to 'sc/source/core/tool/interpr1.cxx')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index df8821b84531..1c0e0237ad53 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -9144,7 +9144,7 @@ void ScInterpreter::ScFindB() else { // create a string from sStr starting at nStart - OUStringBuffer aBuf( lcl_RightB( aStr, nLen - nStart + 1 ) ); + OUString aBuf = lcl_RightB( aStr, nLen - nStart + 1 ); // search aBuf for asStr sal_Int32 nPos = aBuf.indexOf( asStr, 0 ); if ( nPos == -1 ) @@ -9152,7 +9152,7 @@ void ScInterpreter::ScFindB() else { // obtain byte value of nPos - int nBytePos = lcl_getLengthB( aBuf.makeStringAndClear(), nPos ); + int nBytePos = lcl_getLengthB( aBuf, nPos ); PushDouble( nBytePos + nStart ); } } |