From 635d3557e52e883d8cc756fdefd7248791c58b56 Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Wed, 16 Sep 2026 21:09:02 +0200 Subject: [PATCH] [tree] deprecate implementation detail header --- README/ReleaseNotes/v642/index.md | 1 + tree/treeviewer/inc/HelpTextTV.h | 3 +++ tree/treeviewer/src/HelpTextTV.cxx | 1 + tree/treeviewer/src/TTreeViewer.cxx | 1 + 4 files changed, 6 insertions(+) diff --git a/README/ReleaseNotes/v642/index.md b/README/ReleaseNotes/v642/index.md index 61c80c9c5b822..153cc9ae99ab8 100644 --- a/README/ReleaseNotes/v642/index.md +++ b/README/ReleaseNotes/v642/index.md @@ -79,6 +79,7 @@ The `TMVA_SOFIE_GNN` tutorials have been migrated to this workflow and produce i * The header `RStringView.h` deprecated in ROOT 6.14 will now emit warnings and will be fully removed after ROOT 6.44. Use `ROOT/RStringView.hxx` instead. * The header `snprintf.h` is deprecated (will emit warnings) and will be removed in ROOT 6.44. Use instead ``. * The header `Strlen.h` is deprecated and will be removed in ROOT 6.44. Use `` directly as a replacement. `NEED_STRING` macro should not be defined or an error will be raised. +* The header `HelpTextTV.h` is deprecated and will be removed in ROOT 6.44. * The header `Varargs.h` and the macro `R__VA_COPY` are deprecated and will be removed in ROOT 6.46, use `` instead. * The header `Riostream.h` is deprecated and will be removed after ROOT 6.44, use `` or `` or `` instead. * The header `Rstrstream.h` is deprecated and will be removed after ROOT 6.44, use instead ``. diff --git a/tree/treeviewer/inc/HelpTextTV.h b/tree/treeviewer/inc/HelpTextTV.h index 0db7bf42a6a62..c22612597c84e 100644 --- a/tree/treeviewer/inc/HelpTextTV.h +++ b/tree/treeviewer/inc/HelpTextTV.h @@ -12,6 +12,9 @@ #ifndef ROOT_HelpTextTV #define ROOT_HelpTextTV +#if !defined(ROOT_HelpTextTV_cxx) && !defined(G__DICTIONARY) +#warning "This header is deprecated and will be removed in ROOT 6.44" +#endif #include R__EXTERN const char gTVHelpAbout[]; diff --git a/tree/treeviewer/src/HelpTextTV.cxx b/tree/treeviewer/src/HelpTextTV.cxx index 86642bc59148f..806ef1b5e243e 100644 --- a/tree/treeviewer/src/HelpTextTV.cxx +++ b/tree/treeviewer/src/HelpTextTV.cxx @@ -9,6 +9,7 @@ * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ +#define ROOT_HelpTextTV_cxx #include "HelpTextTV.h" const char gTVHelpAbout[] = "\ diff --git a/tree/treeviewer/src/TTreeViewer.cxx b/tree/treeviewer/src/TTreeViewer.cxx index 5f0becb1bdb93..f8262cbf214fc 100644 --- a/tree/treeviewer/src/TTreeViewer.cxx +++ b/tree/treeviewer/src/TTreeViewer.cxx @@ -200,6 +200,7 @@ more complex cuts such as (~e1) && (~e2), or (~e1) || !(~e2). Parentheses are im #include "TTreeViewer.h" #include "HelpText.h" +#define ROOT_HelpTextTV_cxx #include "HelpTextTV.h" #include "TTVLVContainer.h" #include "TTVSession.h"