diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-30 09:08:43 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-30 10:43:43 +0000 |
commit | b18b1e80e9f3359fdfc06dc36dd4f0c15e9344af (patch) | |
tree | fdddf4fde93715d21a53a68a38f1104fbed151bb /sfx2 | |
parent | 032b63195ea7e23ed677d0c3d89ca0f0bfd0fa20 (diff) |
sw: use auto when initializing with a cast to avoid duplicating the type name
Change-Id: Ide7bd0f1f444824b78aa53cfe1db0129cbca1a5d
Reviewed-on: https://gerrit.libreoffice.org/31397
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/classificationcontroller.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/classificationcontroller.cxx b/sfx2/source/view/classificationcontroller.cxx index 1b069cc736a2..fd19278994c4 100644 --- a/sfx2/source/view/classificationcontroller.cxx +++ b/sfx2/source/view/classificationcontroller.cxx @@ -154,7 +154,7 @@ void ClassificationCategoriesController::dispose() throw (uno::RuntimeException, uno::Reference<awt::XWindow> ClassificationCategoriesController::createItemWindow(const uno::Reference<awt::XWindow>& rParent) throw (uno::RuntimeException, std::exception) { VclPtr<vcl::Window> pParent = VCLUnoHelper::GetWindow(rParent); - ToolBox* pToolbar = dynamic_cast<ToolBox*>(pParent.get()); + auto pToolbar = dynamic_cast<ToolBox*>(pParent.get()); if (pToolbar) { m_pClassification = VclPtr<ClassificationControl>::Create(pToolbar); |