summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-26 11:34:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-26 15:25:56 +0200
commite9cca2f5e66604ec9bf38fccc6949c7d68a6010c (patch)
tree32d3e96a6210df36d135dd03df0f1541d40c0483
parentf7f7eb79bf62318188f77558c5c9cfbaeab9ccd3 (diff)
i18nlangtag: 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: I6de6b84ebd177f494864d7de91e538fa5a64985c Reviewed-on: https://gerrit.libreoffice.org/58058 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx6
-rw-r--r--include/i18nlangtag/languagetag.hxx2
2 files changed, 0 insertions, 8 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index d46ff8bba324..fd3f1156c744 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -559,12 +559,6 @@ LanguageTag::LanguageTag( const rtl_Locale & rLocale )
convertFromRtlLocale();
}
-
-LanguageTag::~LanguageTag()
-{
-}
-
-
LanguageTag::ImplPtr LanguageTagImpl::registerOnTheFly( LanguageType nRegisterID )
{
LanguageTag::ImplPtr pImpl;
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx
index 1bab1806e959..9f3dc877d9de 100644
--- a/include/i18nlangtag/languagetag.hxx
+++ b/include/i18nlangtag/languagetag.hxx
@@ -107,8 +107,6 @@ public:
*/
explicit LanguageTag( const rtl_Locale & rLocale );
- ~LanguageTag();
-
/** Obtain BCP 47 language tag.
@param bResolveSystem