Update file-utils.cpp.

This commit is contained in:
iaom 2021-07-19 10:58:17 +08:00
parent f1ce5825aa
commit 1449cfabbb
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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())