Преглед изворни кода

ignore deprecated method calls in deprecated method

Git-Dch: Ignore
David Kalnischkies пре 10 година
родитељ
комит
668ae33adc
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      apt-pkg/indexfile.cc

+ 2 - 0
apt-pkg/indexfile.cc

@@ -107,9 +107,11 @@ bool pkgIndexFile::CheckLanguageCode(const char * const Lang)
 									/*}}}*/
 									/*}}}*/
 // IndexFile::LanguageCode - Return the Language Code			/*{{{*/
 // IndexFile::LanguageCode - Return the Language Code			/*{{{*/
 std::string pkgIndexFile::LanguageCode() {
 std::string pkgIndexFile::LanguageCode() {
+APT_IGNORE_DEPRECATED_PUSH
 	if (TranslationsAvailable() == false)
 	if (TranslationsAvailable() == false)
 		return "";
 		return "";
 	return APT::Configuration::getLanguages()[0];
 	return APT::Configuration::getLanguages()[0];
+APT_IGNORE_DEPRECATED_POP
 }
 }
 									/*}}}*/
 									/*}}}*/