diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2009-01-09 14:58:51 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2009-01-09 14:58:51 +0000 |
commit | 9d46ef08fec8440d40f4c91d7c43ab9da4ed1aba (patch) | |
tree | cbd9d11b61bfe510debf84aadef9127a73d36fdd /formula | |
parent | 7112b8abb149907e63b9283f381d26198d8604ad (diff) |
#i10000#: resolve merge conflicts from CWS frmdlg
Diffstat (limited to 'formula')
-rw-r--r-- | formula/inc/formula/tokenarray.hxx | 1 | ||||
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/formula/inc/formula/tokenarray.hxx b/formula/inc/formula/tokenarray.hxx index 4ea8210251..174e48c481 100644 --- a/formula/inc/formula/tokenarray.hxx +++ b/formula/inc/formula/tokenarray.hxx @@ -138,6 +138,7 @@ public: USHORT GetCodeError() const { return nError; } void SetCodeError( USHORT n ) { nError = n; } short GetRefs() const { return nRefs; } + void IncrementRefs() { ++nRefs; } void SetHyperLink( BOOL bVal ) { bHyperLink = bVal; } BOOL IsHyperLink() const { return bHyperLink; } diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 7ee8d12b69..110cba7d56 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1673,12 +1673,7 @@ void FormulaCompiler::AppendString( rtl::OUStringBuffer& rBuffer, const String & else { String aStr( rStr ); - xub_StrLen nPos = 0; - while ( (nPos = aStr.Search( '"', nPos)) != STRING_NOTFOUND ) - { - aStr.Insert( '"', nPos ); - nPos += 2; - } + aStr.SearchAndReplaceAll( '"', String( RTL_CONSTASCII_USTRINGPARAM( "\"\""))); rBuffer.append(aStr); } rBuffer.append(sal_Unicode('"')); |