diff options
Diffstat (limited to 'sc/source/ui/unoobj/servuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/servuno.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index c8f8bea3455e..2e9b3431f4f4 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -98,14 +98,13 @@ public: { SolarMutexGuard aGuard; maCachedObject = uno::Any(); // clear cached object - String sName = aName; ScDocument* pDoc = mpDocShell->GetDocument(); if ( !pDoc ) throw uno::RuntimeException(); - // aName ( sName ) is generated from the stream name which can be different ( case-wise ) + // aName is generated from the stream name which can be different ( case-wise ) // from the code name - if( sName.EqualsIgnoreCaseAscii( pDoc->GetCodeName() ) ) + if( aName.equalsIgnoreAsciiCase( pDoc->GetCodeName() ) ) maCachedObject = maWorkbook; else { @@ -114,9 +113,9 @@ public: for( SCTAB i = 0; i < nCount; i++ ) { pDoc->GetCodeName( i, sCodeName ); - // aName ( sName ) is generated from the stream name which can be different ( case-wise ) + // aName is generated from the stream name which can be different ( case-wise ) // from the code name - if( String(sCodeName).EqualsIgnoreCaseAscii( sName ) ) + if( sCodeName.equalsIgnoreAsciiCase( aName ) ) { OUString sSheetName; if( pDoc->GetName( i, sSheetName ) ) |