diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 12:28:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 20:45:22 +0200 |
commit | 916e1e61a1b2d7f1b822b4b90d63f4e34719a090 (patch) | |
tree | f9a79424083f4a18ff8cdf271e6f6d955d09b467 /oox/source/drawingml | |
parent | de573ba8e67f165693e58e05d80756e5b55852e7 (diff) |
oox: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)
...by explicitly defaulting the copy/move functions (and, where needed in turn,
also a default ctor) for classes that have a user-declared dtor that does
nothing other than an implicitly-defined one would do, but needs to be user-
declared because it is virtual and potentially serves as a key function to
emit the vtable, or is non-public, etc.; and by removing explicitly user-
provided functions that do the same as their implicitly-defined counterparts,
but may prevent implicitly declared copy functions from being defined as non-
deleted in the future. (Even if such a user-provided function was declared
non-inline in an include file, the apparently-used implicitly-defined copy
functions are already include, so why bother with non-inline functions.)
Change-Id: Id05e85ac8ac4155e6345b6f96ddf9449f640dc98
Reviewed-on: https://gerrit.libreoffice.org/58083
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r-- | oox/source/drawingml/table/tableproperties.cxx | 3 | ||||
-rw-r--r-- | oox/source/drawingml/table/tablestylepart.cxx | 4 | ||||
-rw-r--r-- | oox/source/drawingml/textparagraphproperties.cxx | 4 |
3 files changed, 0 insertions, 11 deletions
diff --git a/oox/source/drawingml/table/tableproperties.cxx b/oox/source/drawingml/table/tableproperties.cxx index 2c92390772e8..3be685a954d3 100644 --- a/oox/source/drawingml/table/tableproperties.cxx +++ b/oox/source/drawingml/table/tableproperties.cxx @@ -48,9 +48,6 @@ TableProperties::TableProperties() , mbBandCol( false ) { } -TableProperties::~TableProperties() -{ -} void CreateTableRows( const uno::Reference< XTableRows >& xTableRows, const std::vector< TableRow >& rvTableRows ) { diff --git a/oox/source/drawingml/table/tablestylepart.cxx b/oox/source/drawingml/table/tablestylepart.cxx index 7e3e9eb0702c..322021e1e6ef 100644 --- a/oox/source/drawingml/table/tablestylepart.cxx +++ b/oox/source/drawingml/table/tablestylepart.cxx @@ -31,10 +31,6 @@ TableStylePart::TableStylePart() { } -TableStylePart::~TableStylePart() -{ -} - } } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/oox/source/drawingml/textparagraphproperties.cxx b/oox/source/drawingml/textparagraphproperties.cxx index 8731047cd4b6..c4ad9e7493c5 100644 --- a/oox/source/drawingml/textparagraphproperties.cxx +++ b/oox/source/drawingml/textparagraphproperties.cxx @@ -366,10 +366,6 @@ TextParagraphProperties::TextParagraphProperties() { } -TextParagraphProperties::~TextParagraphProperties() -{ -} - void TextParagraphProperties::apply( const TextParagraphProperties& rSourceProps ) { maTextParagraphPropertyMap.assignAll( rSourceProps.maTextParagraphPropertyMap ); |