summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/pastedlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/pastedlg.cxx')
-rw-r--r--cui/source/dialogs/pastedlg.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/dialogs/pastedlg.cxx b/cui/source/dialogs/pastedlg.cxx
index d86d277cc34f..91e91bf0dcec 100644
--- a/cui/source/dialogs/pastedlg.cxx
+++ b/cui/source/dialogs/pastedlg.cxx
@@ -30,10 +30,10 @@
#include <com/sun/star/beans/PropertyValue.hpp>
SvPasteObjectDialog::SvPasteObjectDialog(weld::Window* pParent)
- : GenericDialogController(pParent, "cui/ui/pastespecial.ui", "PasteSpecialDialog")
- , m_xFtObjectSource(m_xBuilder->weld_label("source"))
- , m_xLbInsertList(m_xBuilder->weld_tree_view("list"))
- , m_xOKButton(m_xBuilder->weld_button("ok"))
+ : GenericDialogController(pParent, u"cui/ui/pastespecial.ui"_ustr, u"PasteSpecialDialog"_ustr)
+ , m_xFtObjectSource(m_xBuilder->weld_label(u"source"_ustr))
+ , m_xLbInsertList(m_xBuilder->weld_tree_view(u"list"_ustr))
+ , m_xOKButton(m_xBuilder->weld_button(u"ok"_ustr))
{
m_xLbInsertList->set_size_request(m_xLbInsertList->get_approximate_digit_width() * 40,
m_xLbInsertList->get_height_rows(6));
@@ -85,7 +85,7 @@ void SvPasteObjectDialog::PreGetFormat( const TransferableDataHelper &rHelper )
TransferableObjectDescriptor aDesc;
if (rHelper.HasFormat(SotClipboardFormatId::OBJECTDESCRIPTOR))
{
- (void)const_cast<TransferableDataHelper&>(rHelper).GetTransferableObjectDescriptor(
+ (void)rHelper.GetTransferableObjectDescriptor(
SotClipboardFormatId::OBJECTDESCRIPTOR, aDesc);
}
const DataFlavorExVector* pFormats = &rHelper.GetDataFlavorExVector();
@@ -204,7 +204,7 @@ SotClipboardFormatId SvPasteObjectDialog::GetFormat( const TransferableDataHelpe
TransferableObjectDescriptor aDesc;
if (rHelper.HasFormat(SotClipboardFormatId::OBJECTDESCRIPTOR))
{
- (void)const_cast<TransferableDataHelper&>(rHelper).GetTransferableObjectDescriptor(
+ (void)rHelper.GetTransferableObjectDescriptor(
SotClipboardFormatId::OBJECTDESCRIPTOR, aDesc);
}
const DataFlavorExVector* pFormats = &rHelper.GetDataFlavorExVector();