Fix typos pathes -> paths

This commit is contained in:
Zheng, Lei
2019-07-20 11:18:47 +08:00
committed by wmayer
parent 3bb578c825
commit 2f0aa9b2a5
4 changed files with 16 additions and 16 deletions

View File

@@ -595,7 +595,7 @@ Document* Application::openDocument(const char * FileName, bool createView) {
std::vector<Document*> Application::openDocuments(
const std::vector<std::string> &filenames,
const std::vector<std::string> *pathes,
const std::vector<std::string> *paths,
const std::vector<std::string> *labels,
std::vector<std::string> *errs,
bool createView)
@@ -641,8 +641,8 @@ std::vector<Document*> Application::openDocuments(
const char *path = name;
const char *label = 0;
if(isMainDoc) {
if(pathes && pathes->size()>count)
path = (*pathes)[count].c_str();
if(paths && paths->size()>count)
path = (*paths)[count].c_str();
if(labels && labels->size()>count)
label = (*labels)[count].c_str();
}