From: David Kalnischkies Date: Fri, 27 Nov 2015 22:49:15 +0000 (+0100) Subject: ignore deprecated method calls in deprecated method X-Git-Tag: 1.1.2~10 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/668ae33adc17cdc445218be490604d5f900ac9f3?hp=0300f0077af832e87beb290f26b13404cab81fd3 ignore deprecated method calls in deprecated method Git-Dch: Ignore --- diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc index 487a5b920..f0fae907f 100644 --- a/apt-pkg/indexfile.cc +++ b/apt-pkg/indexfile.cc @@ -107,9 +107,11 @@ bool pkgIndexFile::CheckLanguageCode(const char * const Lang) /*}}}*/ // IndexFile::LanguageCode - Return the Language Code /*{{{*/ std::string pkgIndexFile::LanguageCode() { +APT_IGNORE_DEPRECATED_PUSH if (TranslationsAvailable() == false) return ""; return APT::Configuration::getLanguages()[0]; +APT_IGNORE_DEPRECATED_POP } /*}}}*/