summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/qa/extras/macros-test.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/dbaccess/qa/extras/macros-test.cxx b/dbaccess/qa/extras/macros-test.cxx
index 6e165ac640ff..dee5919c3463 100644
--- a/dbaccess/qa/extras/macros-test.cxx
+++ b/dbaccess/qa/extras/macros-test.cxx
@@ -9,6 +9,7 @@
#include <sal/config.h>
#include <test/unoapi_test.hxx>
+#include <com/sun/star/util/XCloseable.hpp>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -37,7 +38,8 @@ void DBAccessTest::test()
OUString aFileName;
createFileURL(u"testdb.odb", aFileName);
uno::Reference<lang::XComponent> xComponent = loadFromDesktop(aFileName);
- xComponent->dispose();
+ uno::Reference<util::XCloseable> xDocCloseable(xComponent, UNO_QUERY_THROW);
+ xDocCloseable->close(false);
}
CPPUNIT_TEST_SUITE_REGISTRATION(DBAccessTest);