diff options
Diffstat (limited to 'sd/source/ui/app/sdpopup.cxx')
-rw-r--r-- | sd/source/ui/app/sdpopup.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sd/source/ui/app/sdpopup.cxx b/sd/source/ui/app/sdpopup.cxx index 52a0435351de..4aafd2848a3a 100644 --- a/sd/source/ui/app/sdpopup.cxx +++ b/sd/source/ui/app/sdpopup.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <string_view> + #include <editeng/flditem.hxx> #include <sfx2/objsh.hxx> #include <sfx2/docfile.hxx> @@ -164,7 +168,8 @@ void SdFieldPopup::Execute(weld::Window* pParent, const tools::Rectangle& rRect) { int nCount = m_xPopup->n_children(); for (int i = 3; i < nCount; i++) - m_xPopup->set_active(OString::number(i), sIdent == OString::number(i)); + m_xPopup->set_active( + OString::number(i), sIdent == std::string_view(OString::number(i))); } } |