tdf#74424 vcl: Flush() is implemented in OutputDevice so no need for type check

Change-Id: I12f177dadf9a637ab3ef2fa7d85fe96d1d141808
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96811
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
diff --git a/vcl/source/gdi/impanmvw.cxx b/vcl/source/gdi/impanmvw.cxx
index abdc376..cf5548369 100644
--- a/vcl/source/gdi/impanmvw.cxx
+++ b/vcl/source/gdi/impanmvw.cxx
@@ -286,9 +286,7 @@
            }

            pDev.disposeAndClear();

            if( pRenderContext->GetOutDevType() == OUTDEV_WINDOW )
                static_cast<vcl::Window*>( pRenderContext.get() )->Flush();
            pRenderContext->Flush();
        }
    }
}