diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-07-25 09:31:59 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-07-25 15:02:32 -0400 |
commit | d1cc007108442056f50d3a6d1212b2b4cfdc4c14 (patch) | |
tree | 09d2b40a466930120c926bcc0f8474f061a877f4 /sc | |
parent | 452e452d3e9dcc259bc3e58ed6509284004f04fe (diff) |
sal_Bool to bool, String to OUString, in SfxMedium.
Change-Id: I1bc8486b3fbbcdd45407eeda52a7e239646cd204
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); |