From 39821e7d24deffa72bd9254414d4b58f22be2fca Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Thu, 12 Nov 2020 13:05:19 +0100 Subject: tdf#123936 Formatting files in module libreofficekit with clang-format Change-Id: I3f086de3a49181d32e54d7d58e1206615a9371e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105687 Tested-by: Jenkins Reviewed-by: Christian Lohmaier --- .../qa/gtktiledviewer/gtv-signal-handlers.hxx | 10 +++++----- libreofficekit/qa/unit/compile_test.c | 5 +---- libreofficekit/source/gtk/tilebuffer.hxx | 21 +++++++++++++-------- 3 files changed, 19 insertions(+), 17 deletions(-) (limited to 'libreofficekit') diff --git a/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.hxx b/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.hxx index bddf5c29e625..a441d4e13bf5 100644 --- a/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.hxx +++ b/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.hxx @@ -22,19 +22,19 @@ void createView(GtkWidget* pButton, gpointer /*pItem*/); void getRulerState(GtkWidget* pButton, gpointer /*pItem*/); -void recentUnoChanged( GtkWidget* pSelector, gpointer /* pItem */ ); +void recentUnoChanged(GtkWidget* pSelector, gpointer /* pItem */); void unoCommandDebugger(GtkWidget* pButton, gpointer /* pItem */); void toggleEditing(GtkWidget* pButton, gpointer /*pItem*/); -void changePartMode( GtkWidget* pSelector, gpointer /* pItem */ ); +void changePartMode(GtkWidget* pSelector, gpointer /* pItem */); -void changePart( GtkWidget* pSelector, gpointer /*pItem*/ ); +void changePart(GtkWidget* pSelector, gpointer /*pItem*/); -void openLokDialog( GtkWidget* pSelector, gpointer /*pItem*/ ); +void openLokDialog(GtkWidget* pSelector, gpointer /*pItem*/); -void changeZoom( GtkWidget* pButton, gpointer /* pItem */ ); +void changeZoom(GtkWidget* pButton, gpointer /* pItem */); void toggleFindbar(GtkWidget* pButton, gpointer /*pItem*/); diff --git a/libreofficekit/qa/unit/compile_test.c b/libreofficekit/qa/unit/compile_test.c index bf0b1e5f1824..650718efaab2 100644 --- a/libreofficekit/qa/unit/compile_test.c +++ b/libreofficekit/qa/unit/compile_test.c @@ -15,9 +15,6 @@ #include "test.h" // just make sure this stuff compiles from a plain C file -LibreOfficeKit* compile_test(void) -{ - return lok_init("install/path"); -} +LibreOfficeKit* compile_test(void) { return lok_init("install/path"); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/libreofficekit/source/gtk/tilebuffer.hxx b/libreofficekit/source/gtk/tilebuffer.hxx index 9e7203b3bd69..79fa48c555db 100644 --- a/libreofficekit/source/gtk/tilebuffer.hxx +++ b/libreofficekit/source/gtk/tilebuffer.hxx @@ -54,8 +54,12 @@ GQuark LOKTileBufferErrorQuark(void); */ class Tile { - public: - Tile() : valid(false), m_pBuffer(nullptr) {} +public: + Tile() + : valid(false) + , m_pBuffer(nullptr) + { + } ~Tile() { if (m_pBuffer) @@ -75,7 +79,7 @@ class Tile private: /// Pixel buffer data for this tile - cairo_surface_t *m_pBuffer; + cairo_surface_t* m_pBuffer; }; /** @@ -87,11 +91,12 @@ private: */ class TileBuffer { - public: - TileBuffer(int columns = 0, int scale = 1) - : m_nWidth(columns) +public: + TileBuffer(int columns = 0, int scale = 1) + : m_nWidth(columns) { - cairo_surface_t *pSurface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, nTileSizePixels * scale, nTileSizePixels * scale); + cairo_surface_t* pSurface = cairo_image_surface_create( + CAIRO_FORMAT_ARGB32, nTileSizePixels * scale, nTileSizePixels * scale); m_DummyTile.setSurface(pSurface); cairo_surface_destroy(pSurface); } @@ -118,7 +123,7 @@ class TileBuffer /* Takes ownership of the surface and sets it on a tile at a given location */ - void setTile(int x, int y, cairo_surface_t *surface); + void setTile(int x, int y, cairo_surface_t* surface); /// Returns true if a valid tile exists at this location bool hasValidTile(int x, int y); -- cgit