Kaydet (Commit) 317e0533 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SvxCharacterMap

Change-Id: I85e254fc59b4b0954bbed3876935f56e6480f525
Reviewed-on: https://gerrit.libreoffice.org/56097
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 433fd79e
......@@ -657,8 +657,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, FontSelectHdl, weld::ComboBoxText&, void)
// setup unicode subset listbar with font specific subsets,
// hide unicode subset listbar for symbol fonts
// TODO: get info from the Font once it provides it
delete pSubsetMap;
pSubsetMap = nullptr;
pSubsetMap.reset();
m_xSubsetLB->clear();
bool bNeedSubset = (aFont.GetCharSet() != RTL_TEXTENCODING_SYMBOL);
......@@ -666,7 +665,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, FontSelectHdl, weld::ComboBoxText&, void)
{
FontCharMapRef xFontCharMap( new FontCharMap() );
m_xShowSet->GetFontCharMap( xFontCharMap );
pSubsetMap = new SubsetMap( xFontCharMap );
pSubsetMap.reset(new SubsetMap( xFontCharMap ));
// update subset listbox for new font's unicode subsets
bool bFirst = true;
......
......@@ -76,7 +76,7 @@ private:
VclPtr<VirtualDevice> m_xVirDev;
vcl::Font aFont;
const SubsetMap* pSubsetMap;
std::unique_ptr<const SubsetMap> pSubsetMap;
bool isSearchMode;
bool m_bHasInsert;
std::deque<OUString> maRecentCharList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment