[CommonOptionsParser] Return source paths as const ref.

This saves a superfluous copy and makes managing the lifetime of the
returned strings a bit easier.

llvm-svn: 271262
This commit is contained in:
Benjamin Kramer 2016-05-31 10:17:46 +00:00
parent e3801b0023
commit 5d265347a5
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public:
}
/// Returns a list of source file paths to process.
std::vector<std::string> getSourcePathList() {
const std::vector<std::string> &getSourcePathList() const {
return SourcePathList;
}