compilerplugins/clang/unusedfields.only-used-in-constructor.results | 4 ++-- compilerplugins/clang/unusedfields.untouched.results | 4 ++-- include/LibreOfficeKit/LibreOfficeKitGtk.h | 10 +++++----- libreofficekit/source/gtk/lokdocview.cxx | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-)
New commits: commit 5bc9425900dac10c9c5ecbab881782b381b4225e Author: Tor Lillqvist <[email protected]> AuthorDate: Fri Jan 23 10:51:17 2026 +0200 Commit: Stephan Bergmann <[email protected]> CommitDate: Sun Jan 25 22:33:22 2026 +0100 Avoid illegal names also for the LibreOfficeKitGtk structs Change-Id: If8b5987e0779ece9518384f88a0363a3c596d7ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197937 Reviewed-by: Stephan Bergmann <[email protected]> Tested-by: Jenkins diff --git a/compilerplugins/clang/unusedfields.only-used-in-constructor.results b/compilerplugins/clang/unusedfields.only-used-in-constructor.results index 3c6de0fd2d32..281ea2f970d8 100644 --- a/compilerplugins/clang/unusedfields.only-used-in-constructor.results +++ b/compilerplugins/clang/unusedfields.only-used-in-constructor.results @@ -249,9 +249,9 @@ include/filter/msfilter/svdfppt.hxx:886 include/formula/formulahelper.hxx:39 formula::FormulaHelper m_aSysLocale SvtSysLocale include/LibreOfficeKit/LibreOfficeKitGtk.h:41 - _LOKDocView aDrawingArea GtkDrawingArea + LOKDocViewStruct aDrawingArea GtkDrawingArea include/LibreOfficeKit/LibreOfficeKitGtk.h:46 - _LOKDocViewClass parent_class GtkDrawingAreaClass + LOKDocViewClassStruct parent_class GtkDrawingAreaClass include/oox/export/shapes.hxx:103 oox::drawingml::ShapeExport maShapeMap ShapeHashMap include/registry/registry.hxx:34 diff --git a/compilerplugins/clang/unusedfields.untouched.results b/compilerplugins/clang/unusedfields.untouched.results index ea8983b05040..b7eaa8155065 100644 --- a/compilerplugins/clang/unusedfields.untouched.results +++ b/compilerplugins/clang/unusedfields.untouched.results @@ -103,9 +103,9 @@ include/editeng/unotext.hxx:628 include/filter/msfilter/svdfppt.hxx:541 ProcessData aBackgroundColoredObjects ::std::vector<rtl::Reference<SdrObject> > include/LibreOfficeKit/LibreOfficeKitGtk.h:41 - _LOKDocView aDrawingArea GtkDrawingArea + LOKDocViewStruct aDrawingArea GtkDrawingArea include/LibreOfficeKit/LibreOfficeKitGtk.h:46 - _LOKDocViewClass parent_class GtkDrawingAreaClass + LOKDocViewClassStruct parent_class GtkDrawingAreaClass include/oox/vml/vmlshapecontext.hxx:117 oox::vml::ShapeTypeContext m_pShapeType std::shared_ptr<ShapeType> include/registry/registry.hxx:34 diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h index 3365fd10e47f..d3001f318875 100644 --- a/include/LibreOfficeKit/LibreOfficeKitGtk.h +++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h @@ -32,16 +32,16 @@ G_BEGIN_DECLS #define LOK_IS_DOC_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), LOK_TYPE_DOC_VIEW)) #define LOK_DOC_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), LOK_TYPE_DOC_VIEW, LOKDocViewClass)) -typedef struct _LOKDocView LOKDocView; -typedef struct _LOKDocViewClass LOKDocViewClass; -typedef struct _LOKDocViewPrivate LOKDocViewPrivate; +typedef struct LOKDocViewStruct LOKDocView; +typedef struct LOKDocViewClassStruct LOKDocViewClass; +typedef struct LOKDocViewPrivateStruct LOKDocViewPrivate; -struct _LOKDocView +struct LOKDocViewStruct { GtkDrawingArea aDrawingArea; }; -struct _LOKDocViewClass +struct LOKDocViewClassStruct { GtkDrawingAreaClass parent_class; }; diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 25323b43b7ef..298315d173ab 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -270,7 +270,7 @@ void setDocumentView(LibreOfficeKitDocument* pDoc, int viewId) } /// Wrapper around LOKDocViewPrivateImpl, managed by malloc/memset/free. -struct _LOKDocViewPrivate +struct LOKDocViewPrivateStruct { LOKDocViewPrivateImpl* m_pImpl;
