diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:26:56 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-22 01:55:18 +0100 |
commit | 58d98a08aee7bf027c109eeb94183d24351827fa (patch) | |
tree | 4cdfd20f56d097e77f79286dfcc379eca25aa12a /vcl/osx/DragActionConversion.cxx | |
parent | a65141b2b46ad8150bafca4629b0ef924978a201 (diff) |
tdf#123936 Formatting files in module vcl with clang-format
Change-Id: Ia162ad5b7499c0ddfdbfca59ae76b81335ce2d45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105728
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
Diffstat (limited to 'vcl/osx/DragActionConversion.cxx')
-rw-r--r-- | vcl/osx/DragActionConversion.cxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/vcl/osx/DragActionConversion.cxx b/vcl/osx/DragActionConversion.cxx index 3af6cd010a3f..d44c3384a6fc 100644 --- a/vcl/osx/DragActionConversion.cxx +++ b/vcl/osx/DragActionConversion.cxx @@ -28,24 +28,24 @@ using namespace com::sun::star::datatransfer::dnd; */ unsigned int OfficeToSystemDragActions(sal_Int8 dragActions) { - unsigned int actions = NSDragOperationNone; + unsigned int actions = NSDragOperationNone; - if (dragActions & DNDConstants::ACTION_COPY) + if (dragActions & DNDConstants::ACTION_COPY) { - actions |= NSDragOperationCopy; + actions |= NSDragOperationCopy; } - if (dragActions & DNDConstants::ACTION_MOVE) + if (dragActions & DNDConstants::ACTION_MOVE) { - actions |= NSDragOperationMove; + actions |= NSDragOperationMove; } - if (dragActions & DNDConstants::ACTION_LINK) + if (dragActions & DNDConstants::ACTION_LINK) { - actions |= NSDragOperationLink; + actions |= NSDragOperationLink; } - return actions; + return actions; } /* Convert system conform drag actions into office conform @@ -54,31 +54,31 @@ unsigned int OfficeToSystemDragActions(sal_Int8 dragActions) */ sal_Int8 SystemToOfficeDragActions(unsigned int dragActions) { - sal_Int8 actions = DNDConstants::ACTION_NONE; + sal_Int8 actions = DNDConstants::ACTION_NONE; - if (dragActions & NSDragOperationCopy) + if (dragActions & NSDragOperationCopy) { - actions |= DNDConstants::ACTION_COPY; + actions |= DNDConstants::ACTION_COPY; } - if (dragActions & NSDragOperationMove) + if (dragActions & NSDragOperationMove) { - actions |= DNDConstants::ACTION_MOVE; + actions |= DNDConstants::ACTION_MOVE; } - if (dragActions & NSDragOperationLink) + if (dragActions & NSDragOperationLink) { - actions |= DNDConstants::ACTION_LINK; + actions |= DNDConstants::ACTION_LINK; } - // We map NSDragOperationGeneric to ACTION_DEFAULT to - // signal that we have to decide for a drag action - if (dragActions & NSDragOperationGeneric) + // We map NSDragOperationGeneric to ACTION_DEFAULT to + // signal that we have to decide for a drag action + if (dragActions & NSDragOperationGeneric) { - actions |= DNDConstants::ACTION_DEFAULT; + actions |= DNDConstants::ACTION_DEFAULT; } - return actions; + return actions; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |