summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/xls/worksheetbuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/xls/worksheetbuffer.cxx b/oox/source/xls/worksheetbuffer.cxx
index 0214da3a286c..84ffb4c955b8 100644
--- a/oox/source/xls/worksheetbuffer.cxx
+++ b/oox/source/xls/worksheetbuffer.cxx
@@ -183,7 +183,7 @@ OUString lclQuoteName( const OUString& rName )
OUStringBuffer aBuffer( rName );
// duplicate all quote characters
for( sal_Int32 nPos = aBuffer.getLength() - 1; nPos >= 0; --nPos )
- if( aBuffer.charAt( nPos ) == '\'' )
+ if( aBuffer[nPos] == '\'' )
aBuffer.insert( nPos, sal_Unicode( '\'' ) );
// add outer quotes and return
return aBuffer.insert( 0, sal_Unicode( '\'' ) ).append( sal_Unicode( '\'' ) ).makeStringAndClear();