gbranden pushed a commit to branch master
in repository groff.

commit bd74004a19a0740248332c01789642842e77698f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Aug 19 03:25:07 2023 -0500

    [troff]: Drop unnecessary copy constructor decl.
    
    * src/roff/troff/node.cpp (class tfont_spec): Stop declaring copy
      constructor.  The implicitly defined one suffices.  Resolves
      "-Wdeprecated-copy" warning from GCC.
    
    Fixes <https://savannah.gnu.org/bugs/?57515>.  Thanks to Bjarni Ingi
    Gislason for the report.
---
 ChangeLog               | 9 +++++++++
 src/roff/troff/node.cpp | 1 -
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index d4bbb646f..829e839ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2023-08-19  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/node.cpp (class tfont_spec): Stop declaring
+       copy constructor.  The implicitly defined one suffices.
+       Resolves "-Wdeprecated-copy" warning from GCC.
+
+       Fixes <https://savannah.gnu.org/bugs/?57515>.  Thanks to Bjarni
+       Ingi Gislason for the report.
+
 2023-08-16  G. Branden Robinson <[email protected]>
 
        * configure.ac: Include paper format in configuration report.
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 3b4511b21..f887429bc 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -189,7 +189,6 @@ protected:
   int slant;
 public:
   tfont_spec(symbol, int, font *, font_size, int, int);
-  tfont_spec(const tfont_spec &spec) { *this = spec; }
   tfont_spec plain();
   int operator==(const tfont_spec &);
   friend tfont *font_info::get_tfont(font_size fs, int, int, int);

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to