summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/basesh.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-02-01 13:58:29 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-02-02 07:32:11 +0100
commitffe0f40bd70f96f9b57a8bde1625dd56534a149e (patch)
tree0b42027ec107dda568f696e55b4aa1d7c483407b /sw/source/uibase/shells/basesh.cxx
parent59317e7b1b822cf06effcd5b3ce004019d95e0ef (diff)
sw: Use a const TransferableDataHelper (ref) here
All these methods don't modify the object, so can use a const reference. Change-Id: Ic30f84931358c61999ba27e0da303fdf4bb6f50a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162923 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'sw/source/uibase/shells/basesh.cxx')
-rw-r--r--sw/source/uibase/shells/basesh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index 45f5525884d3..9e9095faed2d 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -447,7 +447,7 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
case SID_PASTE_SPECIAL:
{
- std::shared_ptr<TransferableDataHelper> aDataHelper =
+ std::shared_ptr<const TransferableDataHelper> aDataHelper =
std::make_shared<TransferableDataHelper>(TransferableDataHelper::CreateFromSystemClipboard( &rSh.GetView().GetEditWin()));
if( aDataHelper->GetXTransferable().is()