diff options
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.hxx | 10 | ||||
-rw-r--r-- | libreofficekit/qa/unit/compile_test.c | 5 | ||||
-rw-r--r-- | libreofficekit/source/gtk/tilebuffer.hxx | 21 |
3 files changed, 19 insertions, 17 deletions
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); |