diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/externalrefmgr.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/docshell/tablink.cxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index e1e18c124909..02811e8a6638 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -2077,11 +2077,10 @@ const ScDocument* ScExternalRefManager::getInMemorySrcDocument(sal_uInt16 nFileI while (pShell) { SfxMedium* pMedium = pShell->GetMedium(); - if (pMedium && pMedium->GetName().Len()) + if (pMedium && !pMedium->GetName().isEmpty()) { - OUString aName = pMedium->GetName(); // TODO: We should make the case sensitivity platform dependent. - if (pFileName->equalsIgnoreAsciiCase(aName)) + if (pFileName->equalsIgnoreAsciiCase(pMedium->GetName())) { // Found ! pSrcDoc = pShell->GetDocument(); diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx index 888df91567e3..29d1c939d772 100644 --- a/sc/source/ui/docshell/tablink.cxx +++ b/sc/source/ui/docshell/tablink.cxx @@ -472,7 +472,7 @@ bool ScDocumentLoader::GetFilterName( const String& rFileName, if ( pDocSh->HasName() ) { SfxMedium* pMed = pDocSh->GetMedium(); - if ( rFileName == pMed->GetName() ) + if ( pMed->GetName().equals(rFileName) ) { rFilter = pMed->GetFilter()->GetFilterName(); rOptions = GetOptions(*pMed); |