diff options
author | David Kalnischkies <david@kalnischkies.de> | 2019-07-08 15:48:59 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2019-07-08 15:51:17 +0200 |
commit | 2b734a7ec429825c7007c1093883229e069d36c7 (patch) | |
tree | b67360f3201634c82f5a9e7dd84f47b28fa63acb /methods/cdrom.cc | |
parent | cbe90ee516d7f747f981e423f164f99eb767240b (diff) |
Apply various suggestions by cppcheck
Reported-By: cppcheck
Diffstat (limited to 'methods/cdrom.cc')
-rw-r--r-- | methods/cdrom.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/cdrom.cc b/methods/cdrom.cc index d024d18d1..4ae64c8d3 100644 --- a/methods/cdrom.cc +++ b/methods/cdrom.cc @@ -43,7 +43,7 @@ class CDROMMethod : public aptMethod bool IsCorrectCD(URI want, string MountPath, string& NewID); bool AutoDetectAndMount(const URI, string &NewID); virtual bool Fetch(FetchItem *Itm) APT_OVERRIDE; - string GetID(string Name); + std::string GetID(std::string const &Name); virtual void Exit() APT_OVERRIDE; virtual bool Configuration(std::string Message) APT_OVERRIDE; @@ -77,7 +77,7 @@ void CDROMMethod::Exit() // CDROMMethod::GetID - Search the database for a matching string /*{{{*/ // --------------------------------------------------------------------- /* */ -string CDROMMethod::GetID(string Name) +std::string CDROMMethod::GetID(std::string const &Name) { // Search for an ID const Configuration::Item *Top = Database.Tree("CD"); |