mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-07 09:12:10 +00:00
Remove useless const from the declaration of extract_rpm()
In this declaration: const bool extract_rpm(const string& pkg_path, const string &extracted_pkg_dir_path) the compiler rightfully complains that the const qualifier on the return type is useless. This is because the value is returned by copy so the const-ness is not relevant. Fixed thus. * tools/abipkgdiff.cc (extract_rpm): Remove useless const qualifier. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
9d25aa0125
commit
fc805d43b5
@ -213,7 +213,7 @@ elf_file_type(const GElf_Ehdr* ehdr)
|
||||
}
|
||||
}
|
||||
|
||||
const bool
|
||||
bool
|
||||
extract_rpm(const string& pkg_path, const string &extracted_pkg_dir_path)
|
||||
{
|
||||
string cmd = "mkdir " + extracted_pkg_dir_path + " && cd " +
|
||||
|
Loading…
Reference in New Issue
Block a user