diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-18 14:04:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-18 14:06:56 +0100 |
commit | cfa853c07fd4632fa40e62a5b4474c55d4588416 (patch) | |
tree | 0e241328eca9b2f7602a4b36f1f62bc89ec5fa99 /writerfilter | |
parent | a5d5ce5dfa0f0cdd048192d60c70da575a6f1735 (diff) |
this debugging code can definitely use osl
Change-Id: I420e7f242868a25a2f9a473c23c67dfd9a285b7c
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/filter/RtfFilter.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/writerfilter/source/filter/RtfFilter.cxx b/writerfilter/source/filter/RtfFilter.cxx index 7bf88b2d218f..752330c955ef 100644 --- a/writerfilter/source/filter/RtfFilter.cxx +++ b/writerfilter/source/filter/RtfFilter.cxx @@ -29,7 +29,7 @@ #include <cppuhelper/implbase.hxx> #include <cppuhelper/implementationentry.hxx> #include <cppuhelper/supportsservice.hxx> -#include <unotools/localfilehelper.hxx> +#include <osl/file.hxx> #include <unotools/mediadescriptor.hxx> #include <unotools/streamwrap.hxx> #include <unotools/ucbstreamhelper.hxx> @@ -119,7 +119,7 @@ sal_Bool RtfFilter::filter(const uno::Sequence< beans::PropertyValue >& aDescrip // If this is set, write to this file, instead of the real document during paste. char* pEnv = getenv("SW_DEBUG_RTF_PASTE_TO"); OUString aOutStr; - if (!bIsNewDoc && pEnv && utl::LocalFileHelper::ConvertPhysicalNameToURL(OUString::fromUtf8(pEnv), aOutStr)) + if (!bIsNewDoc && pEnv && osl::FileBase::getFileURLFromSystemPath(OUString::fromUtf8(pEnv), aOutStr) == osl::FileBase::E_None) { std::unique_ptr<SvStream> pOut(utl::UcbStreamHelper::CreateStream(aOutStr, StreamMode::WRITE)); std::unique_ptr<SvStream> pIn(utl::UcbStreamHelper::CreateStream(xInputStream)); @@ -132,7 +132,7 @@ sal_Bool RtfFilter::filter(const uno::Sequence< beans::PropertyValue >& aDescrip if (!bIsNewDoc && pEnv) { OUString aInStr; - utl::LocalFileHelper::ConvertPhysicalNameToURL(OUString::fromUtf8(pEnv), aInStr); + osl::FileBase::getFileURLFromSystemPath(OUString::fromUtf8(pEnv), aInStr); SvStream* pStream = utl::UcbStreamHelper::CreateStream(aInStr, StreamMode::READ); uno::Reference<io::XStream> xStream(new utl::OStreamWrapper(*pStream)); xInputStream.set(xStream, uno::UNO_QUERY); |