diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-03 08:39:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-05-04 12:39:40 +0200 |
commit | 58a32075ca4f457f570af75aef368dd6c389aca7 (patch) | |
tree | e437dcbdeb248b4316cb8a9281d1543419853f6d /sdext/source | |
parent | Underline should be a split button (diff) | |
download | core-58a32075ca4f457f570af75aef368dd6c389aca7.tar.gz core-58a32075ca4f457f570af75aef368dd6c389aca7.zip |
use Any constructor instead of temporaries
Change-Id: Iffb82a2cee1a28d89eeea2b905aaa14086ee475a
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/presenter/PresenterScreen.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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<beans::XPropertySet> xProperties (xPresentation, UNO_QUERY_THROW); - uno::Any aDisplay; - aDisplay <<= nNewScreen; - xProperties->setPropertyValue("Display", aDisplay); + xProperties->setPropertyValue("Display", Any(nNewScreen)); } catch (const uno::Exception &) { } } |