diff options
-rw-r--r-- | include/vcl/transfer.hxx | 2 | ||||
-rw-r--r-- | vcl/source/treelist/transfer2.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/transfer.hxx b/include/vcl/transfer.hxx index 234871576031..e374192378fb 100644 --- a/include/vcl/transfer.hxx +++ b/include/vcl/transfer.hxx @@ -476,7 +476,7 @@ public: virtual ~DropTargetHelper(); // typically called by the application in ::AcceptDrop and ::ExecuteDrop and (see above) - bool IsDropFormatSupported( SotClipboardFormatId nFormat ); + bool IsDropFormatSupported(SotClipboardFormatId nFormat) const; const DataFlavorExVector& GetDataFlavorExVector() const {return maFormats; } diff --git a/vcl/source/treelist/transfer2.cxx b/vcl/source/treelist/transfer2.cxx index 349b69609910..26407021ff52 100644 --- a/vcl/source/treelist/transfer2.cxx +++ b/vcl/source/treelist/transfer2.cxx @@ -295,7 +295,7 @@ sal_Int8 DropTargetHelper::ExecuteDrop( const ExecuteDropEvent& ) } -bool DropTargetHelper::IsDropFormatSupported( SotClipboardFormatId nFormat ) +bool DropTargetHelper::IsDropFormatSupported(SotClipboardFormatId nFormat) const { return std::any_of(maFormats.begin(), maFormats.end(), [&](const DataFlavorEx& data) { return data.mnSotId == nFormat; }); |