diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-20 16:36:06 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-20 16:36:54 -0500 |
commit | 5708d3dcb065247d5774dafbd7911bb5bab72849 (patch) | |
tree | b8eb5bffc56833a3bef41db16f2f424e7734603f /sc | |
parent | 88869c1dd907c4851cd8671f0822a0d7c4fd3f36 (diff) |
More on String to rtl::OUString changes.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/documen8.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/arealink.cxx | 15 | ||||
-rw-r--r-- | sc/source/ui/docshell/externalrefmgr.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/tablink.cxx | 7 |
4 files changed, 9 insertions, 17 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx index 3e32e82624d8..9110f4d51d5a 100644 --- a/sc/source/core/data/documen8.cxx +++ b/sc/source/core/data/documen8.cxx @@ -1031,7 +1031,7 @@ void ScDocument::UpdateExternalRefLinks(Window* pWin) { // Update failed. Notify the user. - String aFile; + rtl::OUString aFile; pLinkManager->GetDisplayNames(pRefLink, NULL, &aFile, NULL, NULL); // Decode encoded URL for display friendliness. INetURLObject aUrl(aFile,INetURLObject::WAS_ENCODED); diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx index 18e163d6b915..832036f2c95e 100644 --- a/sc/source/ui/docshell/arealink.cxx +++ b/sc/source/ui/docshell/arealink.cxx @@ -129,13 +129,8 @@ void ScAreaLink::Edit(Window* pParent, const Link& /* rEndEditHdl */ ) sfx2::LinkManager* pLinkManager=pImpl->m_pDocSh->GetDocument()->GetLinkManager(); if (pLinkManager!=NULL) { - String aTmp1; - String aTmp2; - String aTmp3; - pLinkManager->GetDisplayNames(this, NULL, &aTmp1, &aTmp2, &aTmp3); - rtl::OUString aFile = aTmp1; - rtl::OUString aArea = aTmp2; - rtl::OUString aFilter = aTmp3; + rtl::OUString aFile, aArea, aFilter; + pLinkManager->GetDisplayNames(this, NULL, &aFile, &aArea, &aFilter); // the file dialog returns the filter name with the application prefix // -> remove prefix @@ -148,9 +143,9 @@ void ScAreaLink::Edit(Window* pParent, const Link& /* rEndEditHdl */ ) // adjust in dialog: String aNewLinkName; - aTmp1 = aFilter; - sfx2::MakeLnkName(aNewLinkName, NULL, aFile, aArea, &aTmp1); - aFilter = aTmp1; + String aTmp = aFilter; + sfx2::MakeLnkName(aNewLinkName, NULL, aFile, aArea, &aTmp); + aFilter = aTmp; SetName( aNewLinkName ); } diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index 7931074490ab..eaf72bcfd488 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -1250,7 +1250,7 @@ void ScExternalRefLink::Closed() if (!mbDoRefresh) return SUCCESS; - String aFile, aFilter; + rtl::OUString aFile, aFilter; mpDoc->GetLinkManager()->GetDisplayNames(this, NULL, &aFile, NULL, &aFilter); ScExternalRefManager* pMgr = mpDoc->GetExternalRefManager(); diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx index baaff724eafc..f154f0affc00 100644 --- a/sc/source/ui/docshell/tablink.cxx +++ b/sc/source/ui/docshell/tablink.cxx @@ -147,11 +147,8 @@ void ScTableLink::Edit( Window* pParent, const Link& rEndEditHdl ) sfx2::LinkManager* pLinkManager=pImpl->m_pDocSh->GetDocument()->GetLinkManager(); if (pLinkManager!=NULL) { - String aTmp1; - String aTmp2; - pLinkManager->GetDisplayNames(this, 0, &aTmp1, NULL, &aTmp2); - rtl::OUString aFile = aTmp1; - rtl::OUString aFilter = aTmp2; + rtl::OUString aFile, aFilter; + pLinkManager->GetDisplayNames(this, 0, &aFile, NULL, &aFilter); // the file dialog returns the filter name with the application prefix // -> remove prefix |