sd/source/ui/func/fuinsert.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
New commits: commit 9377ff20724b156c32728d347cdf843fe23dcd81 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Wed Oct 9 23:50:50 2019 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Thu Oct 10 04:15:41 2019 +0200 No need to do anything when !HAVE_FEATURE_AVMEDIA Change-Id: I06d47b69d65c2ab2dbb5bcef19c0ac66eba4c128 Reviewed-on: https://gerrit.libreoffice.org/80571 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx index af372f003ff7..5226627911de 100644 --- a/sd/source/ui/func/fuinsert.cxx +++ b/sd/source/ui/func/fuinsert.cxx @@ -668,6 +668,7 @@ rtl::Reference<FuPoor> FuInsertAVMedia::Create( ViewShell* pViewSh, ::sd::Window void FuInsertAVMedia::DoExecute( SfxRequest& rReq ) { +#if HAVE_FEATURE_AVMEDIA OUString aURL; const SfxItemSet* pReqArgs = rReq.GetArgs(); bool bAPI = false; @@ -685,9 +686,7 @@ void FuInsertAVMedia::DoExecute( SfxRequest& rReq ) bool bLink(true); if (!(bAPI -#if HAVE_FEATURE_AVMEDIA || ::avmedia::MediaWindow::executeMediaURLDialog(mpWindow ? mpWindow->GetFrameWeld() : nullptr, aURL, & bLink) -#endif )) return; @@ -696,7 +695,6 @@ void FuInsertAVMedia::DoExecute( SfxRequest& rReq ) if( mpWindow ) mpWindow->EnterWait(); -#if HAVE_FEATURE_AVMEDIA if( !::avmedia::MediaWindow::isMediaURL( aURL, "", true, &aPrefSize ) ) { if( mpWindow ) @@ -734,10 +732,7 @@ void FuInsertAVMedia::DoExecute( SfxRequest& rReq ) mpWindow->LeaveWait(); } #else - if( mpWindow ) - mpWindow->LeaveWait(); - (void) aPrefSize; - (void) bLink; + (void)rReq; #endif } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits