summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-12-12 02:23:11 +0200
committerTor Lillqvist <tml@collabora.com>2016-12-12 15:52:52 +0200
commitdfc643a5f75948c6afe63a2b8379138a1db17bff (patch)
tree8b61b37ec7df44d51b432b5611614b2fb5254c1c /desktop
parentb472cced4669de6774ffb6a771a4eab4eaee2067 (diff)
loplugin:unreffun
Change-Id: If538d5d5347f58e18869cab2b687af26a39a89eb
Diffstat (limited to 'desktop')
-rw-r--r--desktop/unx/source/splashx.c6
-rw-r--r--desktop/unx/source/splashx.h4
2 files changed, 6 insertions, 4 deletions
diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c
index d10ee89ddc40..d227ff5690a0 100644
--- a/desktop/unx/source/splashx.c
+++ b/desktop/unx/source/splashx.c
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "splashx.h"
+
#ifdef ENABLE_QUICKSTART_LIBPNG
#include <X11/Xlib.h>
@@ -32,8 +34,6 @@
#include <rtl/bootstrap.h>
#include <rtl/ustrbuf.h>
-#include "splashx.h"
-
typedef struct {
unsigned char b, g, r;
} color_t;
@@ -723,8 +723,6 @@ struct splash* splash_create(rtl_uString* pAppPath, int argc, char** argv)
#else /* not ENABLE_QUICKSTART_LIBPNG */
-#include <rtl/ustrbuf.h>
-
struct splash
{
};
diff --git a/desktop/unx/source/splashx.h b/desktop/unx/source/splashx.h
index 4b5fff1d7a6e..a74be00ed5e7 100644
--- a/desktop/unx/source/splashx.h
+++ b/desktop/unx/source/splashx.h
@@ -10,10 +10,14 @@
#define INCLUDED_DESKTOP_UNX_SOURCE_SPLASHX_H
+#include <rtl/ustring.h>
+
#ifdef __cplusplus
extern "C" {
#endif
+struct splash;
+
struct splash* splash_create(rtl_uString* pAppPath, int argc, char** argv);
void splash_destroy(struct splash* splash);