include/IwyuFilter_include.yaml | 3 ++- include/sax/fastattribs.hxx | 1 - include/sax/fshelper.hxx | 5 +++-- include/sax/tools/converter.hxx | 1 - sax/source/tools/fshelper.cxx | 1 + 5 files changed, 6 insertions(+), 5 deletions(-)
New commits: commit 8017995ea38c7b2e0d8fb8091c241af5629bc160 Author: Gabor Kelemen <[email protected]> AuthorDate: Mon Feb 9 13:19:18 2026 +0100 Commit: Gabor Kelemen <[email protected]> CommitDate: Fri Feb 20 21:00:17 2026 +0100 tdf#146619 Use more forward declarations in include/sax Change-Id: I3223a9e8a804c33fe98b0e72e435654f3ccadd88 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199382 Reviewed-by: Gabor Kelemen <[email protected]> Tested-by: Jenkins diff --git a/include/IwyuFilter_include.yaml b/include/IwyuFilter_include.yaml index f321e4f98a6b..37620c2b6704 100644 --- a/include/IwyuFilter_include.yaml +++ b/include/IwyuFilter_include.yaml @@ -330,7 +330,8 @@ excludelist: - com/sun/star/io/XTruncate.hpp include/sax/fastattribs.hxx: # base class has to be a complete type - - com/sun/star/xml/sax/XFastAttributeList.hpp + - com/sun/star/util/XCloneable.hpp + - com/sun/star/xml/sax/XFastTokenHandler.hpp include/sax/fastparser.hxx: # base class has to be a complete type - com/sun/star/lang/XInitialization.hpp diff --git a/include/sax/fastattribs.hxx b/include/sax/fastattribs.hxx index b42c356003db..4e97917b5356 100644 --- a/include/sax/fastattribs.hxx +++ b/include/sax/fastattribs.hxx @@ -31,7 +31,6 @@ #include <string_view> #include <vector> -namespace com::sun::star::xml::sax { class XFastTokenHandler; } namespace com::sun::star::xml { struct Attribute; } namespace sax_fastparser diff --git a/include/sax/fshelper.hxx b/include/sax/fshelper.hxx index 83c3f9d3a71f..5742aeae5fc8 100644 --- a/include/sax/fshelper.hxx +++ b/include/sax/fshelper.hxx @@ -20,10 +20,9 @@ #ifndef INCLUDED_SAX_FSHELPER_HXX #define INCLUDED_SAX_FSHELPER_HXX -#include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Sequence.hxx> #include <rtl/ustring.hxx> -#include <rtl/ref.hxx> +//#include <rtl/ref.hxx> #include <sax/saxdllapi.h> #include <optional> #include <memory> @@ -32,6 +31,8 @@ namespace com::sun::star::io { class XOutputStream; } namespace sax_fastparser { class FastAttributeList; } +namespace com::sun::star::uno { template <class interface_type> class Reference; } +namespace rtl { template <class reference_type> class Reference; } constexpr sal_Int32 FSNS(sal_Int32 namespc, sal_Int32 element) { return (namespc << 16) | element; } diff --git a/include/sax/tools/converter.hxx b/include/sax/tools/converter.hxx index f39e293bdf98..8368a490b250 100644 --- a/include/sax/tools/converter.hxx +++ b/include/sax/tools/converter.hxx @@ -32,7 +32,6 @@ #include <rtl/ustrbuf.hxx> #include <com/sun/star/util/MeasureUnit.hpp> #include <tools/color.hxx> -#include <unotools/saveopt.hxx> namespace com::sun::star { namespace uno { diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx index 744fbefb78ef..7a50bedde05d 100644 --- a/sax/source/tools/fshelper.cxx +++ b/sax/source/tools/fshelper.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <rtl/ref.hxx> #include <sal/log.hxx> #include <sax/fshelper.hxx> #include "fastserializer.hxx"
