Am Donnerstag, dem 19.02.2026 um 11:55 +0100 schrieb Jürgen
> And it also makes this suggestion in other (older) classes
> apparently.
As to -Wshadow the compiler barks at multiple places. This seems to be
fixable easily if we think it is worth it. E.g. in the case included in
this report
diff --git a/src/support/Changer.h b/src/support/Changer.h
index 8cd04894c8..034ec70d95 100644
--- a/src/support/Changer.h
+++ b/src/support/Changer.h
@@ -37,7 +37,7 @@ using Changer = std::unique_ptr<Revertible>;
template<typename X>
class RevertibleRef : public Revertible {
public:
- RevertibleRef(X & ref) : ref(ref), old(ref), enabled(true) {}
+ RevertibleRef(X & r) : ref(r), old(r), enabled(true) {}
//
~RevertibleRef() override { revert(); }
//
But this has certainly not been introduced by ae917831438
--
Jürgen
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel