summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-10-20 12:44:08 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-10-20 12:44:08 +0300
commit077a922368792bac0ebfa1bcc75fedb2ff49cd4d (patch)
tree7efb27a1ad5986c502eb280213b12cea3ab1081c
parentc812c1df6b23a0558488e0955c83654ab05b15d6 (diff)
downloadaptitude-debian-sid.tar.gz
-rw-r--r--src/cmdline/cmdline_util.cc2
-rw-r--r--src/cmdline/cmdline_versions.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmdline/cmdline_util.cc b/src/cmdline/cmdline_util.cc
index 9765d486..63100186 100644
--- a/src/cmdline/cmdline_util.cc
+++ b/src/cmdline/cmdline_util.cc
@@ -680,7 +680,7 @@ namespace aptitude
//
// - defaults to package name, no need to check if it's empty
source_package_name = ver.SourcePkgName();
- source_version = ver.SourceVerStr();
+ const std::string source_version = ver.SourceVerStr();
rval = find_source_package(source_package_name, source_version);
#else
diff --git a/src/cmdline/cmdline_versions.cc b/src/cmdline/cmdline_versions.cc
index 76700545..8e667d31 100644
--- a/src/cmdline/cmdline_versions.cc
+++ b/src/cmdline/cmdline_versions.cc
@@ -175,7 +175,7 @@ namespace
// the VerIterator; much faster than parsing the pkgRecord
//
// - defaults to package name, no need to check if it's empty
- output.push_back(ver.SourcePkgName() + " " + ver.SourceVerStr());
+ output.push_back(ver.SourcePkgName() + std::string(" ") + ver.SourceVerStr());
#else
// I don't think FileList() *can* be invalid; this is just
// paranoia.