From 58a32075ca4f457f570af75aef368dd6c389aca7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 3 May 2016 08:39:03 +0200 Subject: use Any constructor instead of temporaries Change-Id: Iffb82a2cee1a28d89eeea2b905aaa14086ee475a --- sdext/source/presenter/PresenterScreen.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sdext/source') diff --git a/sdext/source/presenter/PresenterScreen.cxx b/sdext/source/presenter/PresenterScreen.cxx index 0a66ff27ea30..098bcd58d14f 100644 --- a/sdext/source/presenter/PresenterScreen.cxx +++ b/sdext/source/presenter/PresenterScreen.cxx @@ -440,9 +440,7 @@ void PresenterScreen::SwitchMonitors() // Set the new presentation display Reference xProperties (xPresentation, UNO_QUERY_THROW); - uno::Any aDisplay; - aDisplay <<= nNewScreen; - xProperties->setPropertyValue("Display", aDisplay); + xProperties->setPropertyValue("Display", Any(nNewScreen)); } catch (const uno::Exception &) { } } -- cgit