summaryrefslogtreecommitdiff
path: root/apt-pkg/cacheset.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-06-05 15:47:16 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-06-05 15:47:16 +0200
commitfe870febbfc1145d4a2a6b86985b0253419d52a8 (patch)
tree29e79ce05f5260d6523769028790ef6bac748dfa /apt-pkg/cacheset.h
parent292f5b8770a0f10d8a19204dc4a914437d861662 (diff)
handle :arch modifier in PackageSet::FromString correctly
Diffstat (limited to 'apt-pkg/cacheset.h')
-rw-r--r--apt-pkg/cacheset.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/cacheset.h b/apt-pkg/cacheset.h
index b65e053e6..4f7be4caa 100644
--- a/apt-pkg/cacheset.h
+++ b/apt-pkg/cacheset.h
@@ -83,8 +83,8 @@ public: /*{{{*/
\param Cache the packages are in
\param string String the package name(s) should be extracted from
\param out stream to print various notices to */
- static APT::PackageSet FromString(pkgCacheFile &Cache, const char * const string, std::ostream &out);
- static APT::PackageSet FromString(pkgCacheFile &Cache, const char * const string) {
+ static APT::PackageSet FromString(pkgCacheFile &Cache, std::string const &string, std::ostream &out);
+ static APT::PackageSet FromString(pkgCacheFile &Cache, std::string const &string) {
std::ostream out (std::ofstream("/dev/null").rdbuf());
return APT::PackageSet::FromString(Cache, string, out);
}