include/vcl/toolkit/edit.hxx | 4 ++-- vcl/source/control/edit.cxx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit e4a2fa75e3d361ecb60942747a3c9f72aea27029 Author: Christopher Sherlock <chris.sherloc...@gmail.com> AuthorDate: Sun Dec 15 21:05:05 2024 +1100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Tue Feb 18 09:33:55 2025 +0100 vcl: rename DDInfo to DragDropInfo Change-Id: I190a3ccea226c7a23eb553a1698d5959b8353b84 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178506 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> Tested-by: Jenkins diff --git a/include/vcl/toolkit/edit.hxx b/include/vcl/toolkit/edit.hxx index 93abf1c5dd63..072c85ecd2c0 100644 --- a/include/vcl/toolkit/edit.hxx +++ b/include/vcl/toolkit/edit.hxx @@ -45,7 +45,7 @@ namespace weld { class PopupMenu; class VclBuilder; -struct DDInfo; +struct DragDropInfo; struct Impl_IMEInfos; #define EDIT_NOLIMIT SAL_MAX_INT32 @@ -57,7 +57,7 @@ class VCL_DLLPUBLIC Edit : public Control, public vcl::unohelper::DragAndDropCli private: VclPtr<Edit> mpSubEdit; TextFilter* mpFilterText; - std::unique_ptr<DDInfo, o3tl::default_delete<DDInfo>> mpDDInfo; + std::unique_ptr<DragDropInfo, o3tl::default_delete<DragDropInfo>> mpDDInfo; std::unique_ptr<Impl_IMEInfos> mpIMEInfos; OUStringBuffer maText; OUString maPlaceholderText; diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index aaccddcbcc4d..a29127f5ff40 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -67,7 +67,7 @@ static FncGetSpecialChars pImplFncGetSpecialChars = nullptr; #define EDIT_DELMODE_RESTOFWORD 12 #define EDIT_DELMODE_RESTOFCONTENT 13 -struct DDInfo +struct DragDropInfo { vcl::Cursor aCursor; Selection aDndStartSel; @@ -77,7 +77,7 @@ struct DDInfo bool bVisCursor = false; bool bIsStringSupported = false; - DDInfo() + DragDropInfo() { aCursor.SetStyle( CURSOR_SHADOW ); } @@ -2719,7 +2719,7 @@ void Edit::dragGestureRecognized(const css::datatransfer::dnd::DragGestureEvent& return; if ( !mpDDInfo ) - mpDDInfo.reset(new DDInfo); + mpDDInfo.reset(new DragDropInfo); mpDDInfo->bStarterOfDD = true; mpDDInfo->aDndStartSel = aSel; @@ -2812,7 +2812,7 @@ void Edit::dragEnter(const css::datatransfer::dnd::DropTargetDragEnterEvent& rDT { if ( !mpDDInfo ) { - mpDDInfo.reset(new DDInfo); + mpDDInfo.reset(new DragDropInfo); } // search for string data type const css::uno::Sequence<css::datatransfer::DataFlavor>& rFlavors(rDTDE.SupportedDataFlavors);