summaryrefslogtreecommitdiff
path: root/vcl/qt5/Qt5Menu.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/qt5/Qt5Menu.cxx')
-rw-r--r--vcl/qt5/Qt5Menu.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qt5/Qt5Menu.cxx b/vcl/qt5/Qt5Menu.cxx
index dd5c9895273e..e2ccd1ffc6af 100644
--- a/vcl/qt5/Qt5Menu.cxx
+++ b/vcl/qt5/Qt5Menu.cxx
@@ -195,7 +195,7 @@ void Qt5Menu::ReinitializeActionGroup(unsigned nPos)
&& (pPrevItem->mpActionGroup == pNextItem->mpActionGroup))
{
std::shared_ptr<QActionGroup> pFirstActionGroup = pPrevItem->mpActionGroup;
- std::shared_ptr<QActionGroup> pSecondActionGroup(new QActionGroup(nullptr));
+ auto pSecondActionGroup = std::make_shared<QActionGroup>(nullptr);
pSecondActionGroup->setExclusive(true);
auto actions = pFirstActionGroup->actions();