diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 11:45:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 16:49:36 +0200 |
commit | d6ecc3562b0628b1c3e0cac3b4e7a39f4038e2e8 (patch) | |
tree | 7860e0e8342146dd1de26ce993c0e33e4178f887 /lingucomponent | |
parent | 601c7bd8eaf2582443c6ccaa58391e52e3ea3bb7 (diff) |
lingucomponent: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)
...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 a dtor was
declared non-inline in an include file, the apparently-used implicitly-defined
copy functions are already inline, so why bother with a non-inline dtor.)
Change-Id: Ib8eea8d4d2088c8a32c5938985ad14e4609a4237
Reviewed-on: https://gerrit.libreoffice.org/58060
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/languageguessing/guess.cxx | 4 | ||||
-rw-r--r-- | lingucomponent/source/languageguessing/guess.hxx | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/lingucomponent/source/languageguessing/guess.cxx b/lingucomponent/source/languageguessing/guess.cxx index 7c578672d19e..e802c0ed95e1 100644 --- a/lingucomponent/source/languageguessing/guess.cxx +++ b/lingucomponent/source/languageguessing/guess.cxx @@ -104,8 +104,4 @@ Guess::Guess(const char * guess_str) } } -Guess::~Guess() -{ -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lingucomponent/source/languageguessing/guess.hxx b/lingucomponent/source/languageguessing/guess.hxx index 9277f94c559d..d85db86900f8 100644 --- a/lingucomponent/source/languageguessing/guess.hxx +++ b/lingucomponent/source/languageguessing/guess.hxx @@ -43,8 +43,6 @@ class Guess final { */ Guess(const char * guess_str); - ~Guess(); - const string& GetLanguage() { return language_str;} const string& GetCountry() { return country_str;} |