diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-11-27 15:40:47 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-27 15:40:47 +0100 |
commit | 5dd00edbcf702cac1ea22392796c65881a8ef6f9 (patch) | |
tree | dc6889cd336109df822a3b7c9f72881a6824157e /apt-pkg/contrib/strutl.h | |
parent | 28f24d3dad1844af316337d565ba2ebc11c8ce97 (diff) |
add messages to our deprecation warnings in libapt
Git-Dch: Ignore
Diffstat (limited to 'apt-pkg/contrib/strutl.h')
-rw-r--r-- | apt-pkg/contrib/strutl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/strutl.h b/apt-pkg/contrib/strutl.h index 01bbfef72..3e3c2cef6 100644 --- a/apt-pkg/contrib/strutl.h +++ b/apt-pkg/contrib/strutl.h @@ -66,7 +66,7 @@ std::string URItoFileName(const std::string &URI); std::string TimeRFC1123(time_t Date); bool RFC1123StrToTime(const char* const str,time_t &time) APT_MUSTCHECK; bool FTPMDTMStrToTime(const char* const str,time_t &time) APT_MUSTCHECK; -APT_DEPRECATED bool StrToTime(const std::string &Val,time_t &Result); +APT_DEPRECATED_MSG("Use RFC1123StrToTime or FTPMDTMStrToTime as needed instead") bool StrToTime(const std::string &Val,time_t &Result); std::string LookupTag(const std::string &Message,const char *Tag,const char *Default = 0); int StringToBool(const std::string &Text,int Default = -1); bool ReadMessages(int Fd, std::vector<std::string> &List); |