commit 3c8525d0feca9619bcf5826647d3e209105a0db1
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Mon Jul 14 12:45:23 2025 +0200
Fixup 1fb23f027a63c2: make LayoutFile final
Fixes clang/libc++ warning
../../master/src/LayoutFile.cpp:53:3: warning: delete called on non-final
'lyx::LayoutFile' that has virtual functions but non-virtual destructor
[-Wdelete-non-abstract-non-virtual-dtor]
---
src/LayoutFile.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/LayoutFile.h b/src/LayoutFile.h
index 6359bf6299..790dfe927d 100644
--- a/src/LayoutFile.h
+++ b/src/LayoutFile.h
@@ -51,7 +51,7 @@ private:
/// Buffer-specific information should therefore be placed in a
/// DocumentClass object.
///
-class LayoutFile : public TextClass {
+class LayoutFile final : public TextClass {
public:
/// check whether the TeX class is available
bool isTeXClassAvailable() const { return tex_class_avail_; }
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs