[Libreoffice-commits] .: sw/qa

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Thu Nov 10 19:38:37 PST 2011


 sw/qa/core/filters-test.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit f596995c14c3360d4b7080f92f91515d6f473bd4
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri Nov 11 04:37:53 2011 +0100

    SfxObjectShell takes ownership of SfxMedium and SfxFilter

diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index 22923cc..c8e7d07 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -71,15 +71,15 @@ private:
 bool SwFiltersTest::load(const rtl::OUString &rFilter, const rtl::OUString &rURL,
     const rtl::OUString &rUserData)
 {
-    SfxFilter aFilter(
+    SfxFilter* pFilter = new SfxFilter(
         rFilter,
         rtl::OUString(), 0, 0, rtl::OUString(), 0, rtl::OUString(),
         rUserData, rtl::OUString() );
 
     SwDocShellRef xDocShRef = new SwDocShell;
-    SfxMedium aSrcMed(rURL, STREAM_STD_READ, true);
-    aSrcMed.SetFilter(&aFilter);
-    bool bLoaded = xDocShRef->DoLoad(&aSrcMed);
+    SfxMedium* pSrcMed = new SfxMedium(rURL, STREAM_STD_READ, true);
+    pSrcMed->SetFilter(pFilter);
+    bool bLoaded = xDocShRef->DoLoad(pSrcMed);
     if (xDocShRef.Is())
         xDocShRef->DoClose();
     return bLoaded;


More information about the Libreoffice-commits mailing list