summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-16 13:07:48 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-10-01 09:35:14 +0000
commitaed0a639f4af8e630dbd6bd4f2e0368b1481eae3 (patch)
tree2313ea3997717749a76ea6e8142d740519cda520
parent7e09b3656472bd5a3ef4090fd2ea6f521956fd53 (diff)
tdf#42949 remove unnecessary includes using iwyu
Change-Id: I13960721b7e15b1761aff8497391e39ae5645b89 Reviewed-on: https://gerrit.libreoffice.org/18616 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rwxr-xr-xbin/gen-iwyu-dummy-lib2
-rw-r--r--include/store/store.h4
-rw-r--r--include/store/store.hxx4
-rw-r--r--include/store/types.h1
-rw-r--r--store/source/stordata.hxx1
5 files changed, 8 insertions, 4 deletions
diff --git a/bin/gen-iwyu-dummy-lib b/bin/gen-iwyu-dummy-lib
index 62e7c7bc2fd8..92ec408af30c 100755
--- a/bin/gen-iwyu-dummy-lib
+++ b/bin/gen-iwyu-dummy-lib
@@ -62,7 +62,7 @@ for dir in $(echo ${iwyu_INCLUDEDIRS_EXTRA} | sed -e "s/ /\n/g" | uniq) ${iwyu_I
echo "-I${SRCDIR}/${dir} \\";
done >> ${iwyu_LIB}
# it fails to find stddef.h?
-echo '-I/usr/lib/clang/3.4/include \' >> ${iwyu_LIB}
+echo '-I/usr/lib/clang/3.6/include \' >> ${iwyu_LIB}
echo "))" >> ${iwyu_LIB} >> ${iwyu_LIB}
echo '$(eval $(call gb_StaticLibrary__add_iwyu_headers,iwyudummy,\' >> ${iwyu_LIB}
diff --git a/include/store/store.h b/include/store/store.h
index 48852c7fe119..1b48a13ebde3 100644
--- a/include/store/store.h
+++ b/include/store/store.h
@@ -20,8 +20,10 @@
#ifndef INCLUDED_STORE_STORE_H
#define INCLUDED_STORE_STORE_H
-#include <store/types.h>
#include <store/storedllapi.h>
+#include <store/types.h>
+#include "rtl/ustring.h"
+#include "sal/types.h"
#ifdef __cplusplus
extern "C" {
diff --git a/include/store/store.hxx b/include/store/store.hxx
index d9edcf371a6a..7a9d355f8e89 100644
--- a/include/store/store.hxx
+++ b/include/store/store.hxx
@@ -20,9 +20,11 @@
#ifndef INCLUDED_STORE_STORE_HXX
#define INCLUDED_STORE_STORE_HXX
+#include <store/store.h>
#include <sal/types.h>
+#include <stddef.h>
#include <rtl/ustring.hxx>
-#include <store/store.h>
+#include "types.h"
namespace store
{
diff --git a/include/store/types.h b/include/store/types.h
index dd4fafccd324..b3b9ad52121f 100644
--- a/include/store/types.h
+++ b/include/store/types.h
@@ -21,7 +21,6 @@
#define INCLUDED_STORE_TYPES_H
#include <sal/types.h>
-#include <rtl/ustring.h>
#ifdef __cplusplus
extern "C" {
diff --git a/store/source/stordata.hxx b/store/source/stordata.hxx
index e53a9b6c401b..ca116bba1273 100644
--- a/store/source/stordata.hxx
+++ b/store/source/stordata.hxx
@@ -24,6 +24,7 @@
#include "sal/types.h"
#include "sal/macros.h"
+#include "rtl/string.h"
#include "store/types.h"
#include "storbase.hxx"