[Libreoffice-commits] core.git: vcl/unx
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Aug 27 19:05:19 UTC 2019
vcl/unx/gtk/fpicker/SalGtkPicker.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 084a263049ecc916bbf7300e45e613a687eb67f2
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Aug 27 17:37:50 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Aug 27 21:03:38 2019 +0200
Fix typo (translateToExternal vs. translateToInternal)
...introduced with e4f37435a0fdd66b2d58633c991c6df720790f39 "fdo#46808, Use
service constructor for uri::ExternalUriReferenceTranslator":
> @@ -82,7 +82,7 @@ OString SalGtkPicker::unicodetouri(const OUString &rURL)
> INetURLObject aURL(rURL);
> if (INET_PROT_FILE == aURL.GetProtocol())
> {
> - OUString aNewURL = uno::Reference<uri::XExternalUriReferenceTranslator>(uno::Reference<XMultiComponentFactory>(comphelper::getProcessServiceFactory(), UNO_QUERY_THROW)->createInstanceWithContext(OUString("com.sun.star.uri.ExternalUriReferenceTranslator"), m_xContext ), UNO_QUERY_THROW)->translateToExternal( rURL );
> + OUString aNewURL = uri::ExternalUriReferenceTranslator::create( m_xContext )->translateToInternal(rURL);
>
> if( !aNewURL.isEmpty() )
> {
Change-Id: Ib709df9ef600f2b6b61878cbb8f99d3ff7ab5c2f
Reviewed-on: https://gerrit.libreoffice.org/78203
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
index b89a9cd9b8a7..01671fb1afc6 100644
--- a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
@@ -84,7 +84,7 @@ OString SalGtkPicker::unicodetouri(const OUString &rURL)
INetURLObject aURL(rURL);
if (INetProtocol::File == aURL.GetProtocol())
{
- OUString aNewURL = uri::ExternalUriReferenceTranslator::create( m_xContext )->translateToInternal(rURL);
+ OUString aNewURL = uri::ExternalUriReferenceTranslator::create( m_xContext )->translateToExternal(rURL);
if( !aNewURL.isEmpty() )
{
More information about the Libreoffice-commits
mailing list