From b05ab09bccacc8e23685c455e24ab64cbf6e7ae3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 10 Jun 2016 18:54:22 +0200 Subject: [PATCH] Clean up uses of Any::getValue() in vbahelper Change-Id: Ie86b1fa0fab5f640ebad9a7fa87266a9787b3118 --- vbahelper/source/vbahelper/vbahelper.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index 884a16740e3d..e0456ea6402f 100644 --- a/vbahelper/source/vbahelper/vbahelper.cxx +++ b/vbahelper/source/vbahelper/vbahelper.cxx @@ -362,10 +362,7 @@ void PrintOutHelper( SfxViewShell* pViewShell, const uno::Any& From, const uno:: sRange += OUString::number( nTo ); } - if ( PrToFileName.getValue() ) - { - PrToFileName >>= sFileName; - } + PrToFileName >>= sFileName; SfxViewFrame* pViewFrame = nullptr; if ( pViewShell ) pViewFrame = pViewShell->GetViewFrame();