src/documentmanager.cpp

changeset 17
a5111f4e6412
parent 14
20d2ed3af73d
child 23
3387a84ddaba
equal deleted inserted replaced
16:aeb5f203b3eb 17:a5111f4e6412
53 "8" 53 "8"
54 }; 54 };
55 const QString baseName = path.fileName(); 55 const QString baseName = path.fileName();
56 const QString dirName = QFileInfo{path.dir().path()}.fileName(); 56 const QString dirName = QFileInfo{path.dir().path()}.fileName();
57 QString result; 57 QString result;
58 if (utility::contains(paths, dirName)) 58 if (std::find(std::begin(paths), std::end(paths), dirName) != std::end(paths))
59 { 59 {
60 result = dirName + "\\" + baseName; 60 result = dirName + "\\" + baseName;
61 } 61 }
62 else 62 else
63 { 63 {

mercurial