vcl/qa/cppunit/complextext.cxx |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

New commits:
commit 22795263e6743005c4f7df3e0dcedd933ed133b4
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Aug 31 19:54:41 2022 +0100
Commit:     خالد حسني <kha...@aliftype.com>
CommitDate: Thu Sep 1 05:29:43 2022 +0200

    use VirtualDevice, not WorkWindow, in test
    
    like
    
    commit 8ca13426ca50a9466f552ac1e2f062920003d5ea
    Date:   Tue Aug 30 16:28:38 2022 +0300
    
        Workaround interdependency of tests
    
    Change-Id: Ic550f1cae45ff3145a3a25785499bf0d226e4940
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139131
    Tested-by: Jenkins
    Reviewed-by: خالد حسني <kha...@aliftype.com>

diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx
index d052564d638b..77b9444d1c74 100644
--- a/vcl/qa/cppunit/complextext.cxx
+++ b/vcl/qa/cppunit/complextext.cxx
@@ -240,12 +240,9 @@ void VclComplexTextTest::testCaret()
 #if HAVE_MORE_FONTS
     // Test caret placement in fonts *without* ligature carets in GDEF table.
 
-    ScopedVclPtrInstance<WorkWindow> pWin(static_cast<vcl::Window *>(nullptr));
-    CPPUNIT_ASSERT( pWin );
-
     vcl::Font aFont("DejaVu Sans", "Book", Size(0, 200));
 
-    OutputDevice *pOutDev = pWin->GetOutDev();
+    ScopedVclPtrInstance<VirtualDevice> pOutDev;
     pOutDev->SetFont( aFont );
 
     OUString aText;
@@ -321,10 +318,7 @@ void VclComplexTextTest::testGdefCaret()
 #if HAVE_MORE_FONTS
     // Test caret placement in fonts *with* ligature carets in GDEF table.
 
-    ScopedVclPtrInstance<WorkWindow> pWin(static_cast<vcl::Window *>(nullptr));
-    CPPUNIT_ASSERT( pWin );
-
-    OutputDevice *pOutDev = pWin->GetOutDev();
+    ScopedVclPtrInstance<VirtualDevice> pOutDev;
 
     vcl::Font aFont;
     OUString aText;

Reply via email to