[Libreoffice-commits] core.git: lingucomponent/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jul 26 14:50:03 UTC 2018


 lingucomponent/source/languageguessing/guess.cxx |    4 ----
 lingucomponent/source/languageguessing/guess.hxx |    2 --
 2 files changed, 6 deletions(-)

New commits:
commit d6ecc3562b0628b1c3e0cac3b4e7a39f4038e2e8
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jul 26 11:45:43 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jul 26 16:49:36 2018 +0200

    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 at redhat.com>

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;}
 


More information about the Libreoffice-commits mailing list