Kaydet (Commit) 31c19950 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Miklos Vajna

tdf#42949 Fix IWYU warnings in store/source/*

Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: I99f1611f41378a0baa7688db5a5f78e0169f0d5b
Reviewed-on: https://gerrit.libreoffice.org/65649
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
üst 74b30472
---
assumeFilename: store/source/storbase.cxx
blacklist:
store/source/storbase.hxx:
# Needed for OSL_BIGENDIAN macro
- osl/endian.h
store/source/stordir.hxx:
# Checking other file gives this
- namespace store { struct OStoreDirectoryPageData; }
store/source/storlckb.hxx:
# Checking other file gives this
- namespace store { struct OStoreDataPageData; }
- namespace store { struct OStoreDirectoryPageData; }
store/source/storpage.hxx:
# Checking other file gives this
- namespace store { struct OStoreDirectoryPageData; }
- namespace store { class OStoreDirectoryPageObject; }
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include <osl/file.h> #include <osl/file.h>
#include <osl/process.h> #include <osl/process.h>
#include <rtl/alloc.h>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <sal/log.hxx> #include <sal/log.hxx>
......
...@@ -26,13 +26,14 @@ ...@@ -26,13 +26,14 @@
#include <sal/types.h> #include <sal/types.h>
#include <rtl/ref.hxx>
#include <rtl/ustring.h> #include <rtl/ustring.h>
#include <salhelper/simplereferenceobject.hxx> #include <salhelper/simplereferenceobject.hxx>
#include <store/types.h> #include <store/types.h>
#include "storbase.hxx" #include "storbase.hxx"
namespace rtl { template <class reference_type> class Reference; }
namespace store namespace store
{ {
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define INCLUDED_STORE_SOURCE_OBJECT_HXX #define INCLUDED_STORE_SOURCE_OBJECT_HXX
#include <sal/types.h> #include <sal/types.h>
#include <osl/interlck.h>
#include <salhelper/simplereferenceobject.hxx> #include <salhelper/simplereferenceobject.hxx>
namespace store namespace store
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <sal/types.h> #include <sal/types.h>
#include <rtl/alloc.h>
#include <rtl/crc.h> #include <rtl/crc.h>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
...@@ -35,8 +34,6 @@ ...@@ -35,8 +34,6 @@
#include <store/types.h> #include <store/types.h>
#include <memory> #include <memory>
#include <stddef.h>
#include <string.h>
#include <utility> #include <utility>
/** @file store common internals. /** @file store common internals.
...@@ -518,8 +515,6 @@ public: ...@@ -518,8 +515,6 @@ public:
} }
}; };
class OStorePageBIOS;
class OStorePageObject class OStorePageObject
{ {
typedef PageData page; typedef PageData page;
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "storbios.hxx" #include "storbios.hxx"
#include <sal/types.h> #include <sal/types.h>
#include <sal/macros.h>
#include <sal/log.hxx> #include <sal/log.hxx>
#include <rtl/alloc.h> #include <rtl/alloc.h>
...@@ -32,7 +31,6 @@ ...@@ -32,7 +31,6 @@
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <store/types.h> #include <store/types.h>
#include "object.hxx"
#include "lockbyte.hxx" #include "lockbyte.hxx"
#include "storcach.hxx" #include "storcach.hxx"
......
...@@ -26,13 +26,13 @@ ...@@ -26,13 +26,13 @@
#include <store/types.h> #include <store/types.h>
#include "object.hxx" #include "object.hxx"
#include "lockbyte.hxx"
#include "storbase.hxx" #include "storbase.hxx"
#include "storcach.hxx"
namespace store namespace store
{ {
class ILockBytes;
class PageCache;
struct SuperBlockPage; struct SuperBlockPage;
class OStorePageBIOS : public store::OStoreObject class OStorePageBIOS : public store::OStoreObject
......
...@@ -28,11 +28,10 @@ ...@@ -28,11 +28,10 @@
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include <store/types.h> #include <store/types.h>
#include "object.hxx"
#include "storbase.hxx" #include "storbase.hxx"
#include <memory> #include <memory>
#include <stddef.h> #include <string.h>
using namespace store; using namespace store;
......
...@@ -25,12 +25,13 @@ ...@@ -25,12 +25,13 @@
#include <memory> #include <memory>
#include <sal/types.h> #include <sal/types.h>
#include <rtl/ref.hxx>
#include <store/types.h> #include <store/types.h>
#include "storbase.hxx"
#include "object.hxx" #include "object.hxx"
namespace rtl { template <class reference_type> class Reference; }
namespace store { struct PageData; }
namespace store namespace store
{ {
......
...@@ -25,15 +25,17 @@ ...@@ -25,15 +25,17 @@
#include <memory> #include <memory>
#include <sal/types.h> #include <sal/types.h>
#include <sal/macros.h>
#include <rtl/string.h> #include <rtl/string.h>
#include <store/types.h> #include <store/types.h>
#include "storbase.hxx" #include "storbase.hxx"
#include <string.h>
namespace store namespace store
{ {
class OStorePageBIOS;
constexpr sal_uInt32 STORE_MAGIC_DATAPAGE(0x94190310); constexpr sal_uInt32 STORE_MAGIC_DATAPAGE(0x94190310);
struct OStoreDataPageData : public store::PageData struct OStoreDataPageData : public store::PageData
......
...@@ -23,11 +23,11 @@ ...@@ -23,11 +23,11 @@
#include <rtl/textcvt.h> #include <rtl/textcvt.h>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <rtl/ustring.h>
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <store/types.h> #include <store/types.h>
#include "object.hxx"
#include "storbase.hxx" #include "storbase.hxx"
#include "stordata.hxx" #include "stordata.hxx"
......
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
#include "object.hxx" #include "object.hxx"
#include "storbase.hxx" #include "storbase.hxx"
#include "storpage.hxx"
namespace store namespace store
{ {
class OStorePageManager;
struct OStoreDirectoryPageData; struct OStoreDirectoryPageData;
class OStoreDirectory_Impl : public store::OStoreObject class OStoreDirectory_Impl : public store::OStoreObject
......
...@@ -20,13 +20,11 @@ ...@@ -20,13 +20,11 @@
#include "storlckb.hxx" #include "storlckb.hxx"
#include <sal/types.h> #include <sal/types.h>
#include <sal/macros.h>
#include <rtl/string.h> #include <rtl/string.h>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <store/types.h> #include <store/types.h>
#include "object.hxx"
#include "storbase.hxx" #include "storbase.hxx"
#include "stordata.hxx" #include "stordata.hxx"
......
...@@ -22,16 +22,16 @@ ...@@ -22,16 +22,16 @@
#include <sal/types.h> #include <sal/types.h>
#include <rtl/ustring.h> #include <rtl/string.h>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include "object.hxx" #include "object.hxx"
#include "storbase.hxx" #include "storbase.hxx"
#include "storpage.hxx"
namespace store namespace store
{ {
class OStorePageManager;
struct OStoreDataPageData; struct OStoreDataPageData;
struct OStoreDirectoryPageData; struct OStoreDirectoryPageData;
......
...@@ -22,14 +22,10 @@ ...@@ -22,14 +22,10 @@
#include <sal/types.h> #include <sal/types.h>
#include <sal/log.hxx> #include <sal/log.hxx>
#include <rtl/string.h> #include <rtl/string.h>
#include <rtl/ref.hxx>
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <store/types.h> #include <store/types.h>
#include "object.hxx"
#include "lockbyte.hxx"
#include "storbase.hxx" #include "storbase.hxx"
#include "stordata.hxx" #include "stordata.hxx"
#include "stortree.hxx" #include "stortree.hxx"
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#define INCLUDED_STORE_SOURCE_STORPAGE_HXX #define INCLUDED_STORE_SOURCE_STORPAGE_HXX
#include <sal/types.h> #include <sal/types.h>
#include <rtl/string.h>
#include "object.hxx" #include "object.hxx"
#include "lockbyte.hxx"
#include "storbase.hxx" #include "storbase.hxx"
#include "storbios.hxx" #include "storbios.hxx"
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
namespace store namespace store
{ {
class ILockBytes;
struct OStoreDirectoryPageData; struct OStoreDirectoryPageData;
class OStoreDirectoryPageObject; class OStoreDirectoryPageObject;
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <sal/config.h> #include <sal/config.h>
#include <memory> #include <memory>
#include <string.h>
#include "stortree.hxx" #include "stortree.hxx"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment