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 mpSubEdit; TextFilter* mpFilterText; - std::unique_ptr> mpDDInfo; + std::unique_ptr> mpDDInfo; std::unique_ptr 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& rFlavors(rDTDE.SupportedDataFlavors);