diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-12 09:45:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-12 10:33:27 +0200 |
commit | a185ea4ec12898574d52ebdf4a1017005745df7d (patch) | |
tree | d6a88042cb6be1d75f3a12a11f0b918eeb6fa403 /sd/source/ui/unoidl/DrawController.cxx | |
parent | e609ac1e5ffe1a6882551660256d9625b630d346 (diff) |
clang-tidy modernize-use-emplace in sd
Change-Id: I2e3000f7bd0f3beed8309e0e3dd18e6ed4b8feee
Reviewed-on: https://gerrit.libreoffice.org/42184
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/unoidl/DrawController.cxx')
-rw-r--r-- | sd/source/ui/unoidl/DrawController.cxx | 60 |
1 files changed, 24 insertions, 36 deletions
diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx index 4feccd46cae4..ba6b31ebe8b5 100644 --- a/sd/source/ui/unoidl/DrawController.cxx +++ b/sd/source/ui/unoidl/DrawController.cxx @@ -583,69 +583,57 @@ sal_Int64 SAL_CALL DrawController::getSomething (const Sequence<sal_Int8>& rId) void DrawController::FillPropertyTable ( ::std::vector<beans::Property>& rProperties) { - rProperties.push_back( - beans::Property("VisibleArea", + rProperties.emplace_back("VisibleArea", PROPERTY_WORKAREA, ::cppu::UnoType< css::awt::Rectangle>::get(), - beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY)); - rProperties.push_back( - beans::Property( + beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY); + rProperties.emplace_back( "SubController", PROPERTY_SUB_CONTROLLER, cppu::UnoType<drawing::XDrawSubController>::get(), - beans::PropertyAttribute::BOUND)); - rProperties.push_back( - beans::Property( + beans::PropertyAttribute::BOUND); + rProperties.emplace_back( "CurrentPage", PROPERTY_CURRENTPAGE, cppu::UnoType<drawing::XDrawPage>::get(), - beans::PropertyAttribute::BOUND )); - rProperties.push_back( - beans::Property("IsLayerMode", + beans::PropertyAttribute::BOUND ); + rProperties.emplace_back("IsLayerMode", PROPERTY_LAYERMODE, cppu::UnoType<bool>::get(), - beans::PropertyAttribute::BOUND )); - rProperties.push_back( - beans::Property("IsMasterPageMode", + beans::PropertyAttribute::BOUND ); + rProperties.emplace_back("IsMasterPageMode", PROPERTY_MASTERPAGEMODE, cppu::UnoType<bool>::get(), - beans::PropertyAttribute::BOUND )); - rProperties.push_back( - beans::Property("ActiveLayer", + beans::PropertyAttribute::BOUND ); + rProperties.emplace_back("ActiveLayer", PROPERTY_ACTIVE_LAYER, cppu::UnoType<drawing::XLayer>::get(), - beans::PropertyAttribute::BOUND )); - rProperties.push_back( - beans::Property("ZoomValue", + beans::PropertyAttribute::BOUND ); + rProperties.emplace_back("ZoomValue", PROPERTY_ZOOMVALUE, ::cppu::UnoType<sal_Int16>::get(), - beans::PropertyAttribute::BOUND )); - rProperties.push_back( - beans::Property("ZoomType", + beans::PropertyAttribute::BOUND ); + rProperties.emplace_back("ZoomType", PROPERTY_ZOOMTYPE, ::cppu::UnoType<sal_Int16>::get(), - beans::PropertyAttribute::BOUND )); - rProperties.push_back( - beans::Property("ViewOffset", + beans::PropertyAttribute::BOUND ); + rProperties.emplace_back("ViewOffset", PROPERTY_VIEWOFFSET, ::cppu::UnoType< css::awt::Point>::get(), - beans::PropertyAttribute::BOUND )); - rProperties.push_back( - beans::Property("DrawViewMode", + beans::PropertyAttribute::BOUND ); + rProperties.emplace_back("DrawViewMode", PROPERTY_DRAWVIEWMODE, ::cppu::UnoType< css::awt::Point>::get(), - beans::PropertyAttribute::BOUND|beans::PropertyAttribute::READONLY|beans::PropertyAttribute::MAYBEVOID )); + beans::PropertyAttribute::BOUND|beans::PropertyAttribute::READONLY|beans::PropertyAttribute::MAYBEVOID ); // add new property to update current page's acc information - rProperties.push_back( - beans::Property( "UpdateAcc", + rProperties.emplace_back( "UpdateAcc", PROPERTY_UPDATEACC, ::cppu::UnoType<sal_Int16>::get(), - beans::PropertyAttribute::BOUND )); - rProperties.push_back( - beans::Property( "PageChange", + beans::PropertyAttribute::BOUND ); + rProperties.emplace_back( "PageChange", PROPERTY_PAGE_CHANGE, ::cppu::UnoType<sal_Int16>::get(), - beans::PropertyAttribute::BOUND )); + beans::PropertyAttribute::BOUND ); } IPropertyArrayHelper & DrawController::getInfoHelper() |