vcl/osx/OSXTransferable.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit 9a828b4d1fcd5bfa471df404dc40fe3ddfccfbb9 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Thu Jan 27 11:37:47 2022 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Thu Jan 27 13:14:26 2022 +0100 Add a SAL_INFO listing types on pasteboard Change-Id: I6b1fa8da47f1140fc42287b05ee8d2afe5ee5d68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129031 Tested-by: Tor Lillqvist <t...@collabora.com> Reviewed-by: Tor Lillqvist <t...@collabora.com> diff --git a/vcl/osx/OSXTransferable.cxx b/vcl/osx/OSXTransferable.cxx index f3ed1ec83fae..493d5b44cc9a 100644 --- a/vcl/osx/OSXTransferable.cxx +++ b/vcl/osx/OSXTransferable.cxx @@ -19,6 +19,7 @@ #include <sal/config.h> +#include <sal/log.hxx> #include <utility> #include <com/sun/star/datatransfer/UnsupportedFlavorException.hpp> @@ -30,7 +31,8 @@ #include "DataFlavorMapping.hxx" -using namespace osl; +#include <quartz/utils.h> + using namespace cppu; using namespace com::sun::star::uno; using namespace com::sun::star::datatransfer; @@ -161,6 +163,9 @@ void OSXTransferable::initClipboardItemList() static_cast<XTransferable*>(this)); } + SAL_INFO("vcl.macos.clipboard", "Types on pasteboard: " << NSStringArrayToOUString(pboardFormats)); + + mFlavorList = mDataFlavorMapper->typesArrayToFlavorSequence(pboardFormats); }