summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/dialog.hxx2
-rw-r--r--starmath/source/dialog.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx
index 016d13ea7e10..6fbaaff7b819 100644
--- a/starmath/inc/dialog.hxx
+++ b/starmath/inc/dialog.hxx
@@ -279,7 +279,7 @@ public:
void calccols(const vcl::RenderContext& rRenderContext);
void SelectSymbol(sal_uInt16 nSymbol);
sal_uInt16 GetSelectSymbol() const { return nSelectSymbol; }
- void SetSymbolSet(const SymbolPtrVec_t& rSymbolSet);
+ void SetSymbolSet(SymbolPtrVec_t && rSymbolSet);
void SetSelectHdl(const Link<SmShowSymbolSet&,void>& rLink) { aSelectHdlLink = rLink; }
void SetDblClickHdl(const Link<SmShowSymbolSet&,void>& rLink) { aDblClickHdlLink = rLink; }
};
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 06c1ab66f3a3..0857f2456db6 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -1103,9 +1103,9 @@ void SmShowSymbolSet::calccols(const vcl::RenderContext& rRenderContext)
SetScrollBarRange();
}
-void SmShowSymbolSet::SetSymbolSet(const SymbolPtrVec_t& rSymbolSet)
+void SmShowSymbolSet::SetSymbolSet(SymbolPtrVec_t && rSymbolSet)
{
- aSymbolSet = rSymbolSet;
+ aSymbolSet = std::move(rSymbolSet);
SetScrollBarRange();
Invalidate();
}
@@ -1257,7 +1257,7 @@ IMPL_LINK_NOARG(SmSymbolDialog, EditClickHdl, weld::Button&, void)
// just update display of current symbol set
assert(aSymSetName == aSymSetName); //unexpected change in symbol set name
aSymbolSet = rSymbolMgr.GetSymbolSet( aSymbolSetName );
- m_xSymbolSetDisplay->SetSymbolSet( aSymbolSet );
+ m_xSymbolSetDisplay->SetSymbolSet( std::vector(aSymbolSet) );
}
if (nSymPos >= aSymbolSet.size())
@@ -1349,7 +1349,7 @@ bool SmSymbolDialog::SelectSymbolSet(const OUString &rSymbolSetName)
return pSym1->GetCharacter() < pSym2->GetCharacter();
} );
- m_xSymbolSetDisplay->SetSymbolSet( aSymbolSet );
+ m_xSymbolSetDisplay->SetSymbolSet( std::move(aSymbolSet) );
if (!aSymbolSet.empty())
SelectSymbol(0);