summaryrefslogtreecommitdiffstats
path: root/extensions/source/propctrlr/listselectiondlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/propctrlr/listselectiondlg.cxx')
-rw-r--r--extensions/source/propctrlr/listselectiondlg.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/extensions/source/propctrlr/listselectiondlg.cxx b/extensions/source/propctrlr/listselectiondlg.cxx
index 3dec4d7a79d3..521afdf449fa 100644
--- a/extensions/source/propctrlr/listselectiondlg.cxx
+++ b/extensions/source/propctrlr/listselectiondlg.cxx
@@ -21,7 +21,8 @@
#include "formstrings.hxx"
#include <comphelper/sequence.hxx>
-#include <tools/diagnose_ex.h>
+#include <utility>
+#include <comphelper/diagnose_ex.hxx>
namespace pcr
{
@@ -29,10 +30,10 @@ namespace pcr
using namespace ::com::sun::star::beans;
ListSelectionDialog::ListSelectionDialog(weld::Window* pParent, const Reference< XPropertySet >& _rxListBox,
- const OUString& _rPropertyName, const OUString& _rPropertyUIName)
+ OUString _sPropertyName, const OUString& _rPropertyUIName)
: GenericDialogController(pParent, "modules/spropctrlr/ui/listselectdialog.ui", "ListSelectDialog")
, m_xListBox ( _rxListBox )
- , m_sPropertyName( _rPropertyName )
+ , m_sPropertyName(std::move( _sPropertyName ))
, m_xFrame(m_xBuilder->weld_frame("frame"))
, m_xEntries(m_xBuilder->weld_tree_view("treeview"))
{
@@ -99,7 +100,7 @@ namespace pcr
try
{
- m_xListBox->setPropertyValue( m_sPropertyName, makeAny( comphelper::containerToSequence(aSelection) ) );
+ m_xListBox->setPropertyValue( m_sPropertyName, Any( comphelper::containerToSequence(aSelection) ) );
}
catch( const Exception& )
{