forked from openkylin/ukui-search
Update file-utils.cpp.
This commit is contained in:
parent
f1ce5825aa
commit
1449cfabbb
|
@ -16,6 +16,6 @@ HEADERS += \
|
|||
$$PWD/SegmentBase.hpp \
|
||||
$$PWD/SegmentTagged.hpp \
|
||||
$$PWD/TextRankExtractor.hpp \
|
||||
$$PWD/Trie.hpp \
|
||||
# $$PWD/Trie.hpp \
|
||||
$$PWD/Unicode.hpp
|
||||
include(limonp/limonp.pri)
|
||||
|
|
|
@ -181,9 +181,9 @@ QString FileUtils::getSettingName(const QString& setting) {
|
|||
|
||||
bool FileUtils::isOrUnder(QString pathA, QString pathB)
|
||||
{
|
||||
if(pathA[0] != "/")
|
||||
if(!pathA.startsWith("/"))
|
||||
pathA.prepend("/");
|
||||
if(pathB[0] != "/")
|
||||
if(!pathB.startsWith("/"))
|
||||
pathB.prepend("/");
|
||||
|
||||
if(pathA.length() < pathB.length())
|
||||
|
|
Loading…
Reference in New Issue