summaryrefslogtreecommitdiff
path: root/apt-pkg/indexrecords.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-06-17 00:14:10 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-08-10 17:24:01 +0200
commite8afd16892e87a6e2f17c1019ee455f5583387c2 (patch)
treed8017e9602be65572c629209c6febeb0ff263d4b /apt-pkg/indexrecords.h
parent3d5e93f7cd6bea364ca811c7f64b5e1d4174a4ac (diff)
apply various style suggestions by cppcheck
Some of them modify the ABI, but given that we prepare a big one already, these few hardly count for much. Git-Dch: Ignore
Diffstat (limited to 'apt-pkg/indexrecords.h')
-rw-r--r--apt-pkg/indexrecords.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/apt-pkg/indexrecords.h b/apt-pkg/indexrecords.h
index f7dfa3235..3ff072590 100644
--- a/apt-pkg/indexrecords.h
+++ b/apt-pkg/indexrecords.h
@@ -40,21 +40,16 @@ class indexRecords
std::map<std::string,checkSum *> Entries;
public:
-#if APT_PKG_ABI >= 413
- indexRecords(const std::string &ExpectedDist = "");
-#else
- indexRecords();
- indexRecords(const std::string ExpectedDist);
-#endif
+ explicit indexRecords(const std::string &ExpectedDist = "");
// Lookup function
- virtual checkSum *Lookup(const std::string MetaKey);
+ virtual checkSum *Lookup(std::string const &MetaKey);
/** \brief tests if a checksum for this file is available */
bool Exists(std::string const &MetaKey) const;
std::vector<std::string> MetaKeys();
- virtual bool Load(std::string Filename);
- virtual bool CheckDist(const std::string MaybeDist) const;
+ virtual bool Load(std::string const &Filename);
+ virtual bool CheckDist(std::string const &MaybeDist) const;
std::string GetDist() const;
std::string GetSuite() const;