diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-30 09:10:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-30 21:20:55 +0200 |
commit | 40077fe30919494f0ecd04c4620cac2334d3d382 (patch) | |
tree | 74bbc75593251353dec6009f76c902ff0adb5813 /svx | |
parent | 0a7c9153b0100db4d216b598969642e10aa52c2e (diff) |
new loplugin:stringviewdangle
to find places where string_view is pointing into a temporary String
Change-Id: Ib530b36f441e95d83d8f687d40a97516a0806721
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133656
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/StylesPreviewWindow.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/StylesPreviewWindow.cxx b/svx/source/tbxctrls/StylesPreviewWindow.cxx index ffd6d1e9b0ed..e786c7b60744 100644 --- a/svx/source/tbxctrls/StylesPreviewWindow.cxx +++ b/svx/source/tbxctrls/StylesPreviewWindow.cxx @@ -129,8 +129,8 @@ bool StylesPreviewWindow_Base::Command(const CommandEvent& rEvent) std::unique_ptr<weld::Builder> xBuilder( Application::CreateBuilder(m_xStylesView.get(), "svx/ui/stylemenu.ui")); std::unique_ptr<weld::Menu> xMenu(xBuilder->weld_menu("menu")); - std::string_view rIdent = xMenu->popup_at_rect( - m_xStylesView.get(), tools::Rectangle(rEvent.GetMousePosPixel(), Size(1, 1))); + OString rIdent = xMenu->popup_at_rect(m_xStylesView.get(), + tools::Rectangle(rEvent.GetMousePosPixel(), Size(1, 1))); if (rIdent == "update" || rIdent == "edit") { css::uno::Sequence<css::beans::PropertyValue> aArgs(0); |