diff --git a/libchinese-segmentation/cppjieba/cppjieba.pri b/libchinese-segmentation/cppjieba/cppjieba.pri index cec0ba9..fffe320 100644 --- a/libchinese-segmentation/cppjieba/cppjieba.pri +++ b/libchinese-segmentation/cppjieba/cppjieba.pri @@ -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) diff --git a/libsearch/file-utils.cpp b/libsearch/file-utils.cpp index 4b74868..393ed72 100644 --- a/libsearch/file-utils.cpp +++ b/libsearch/file-utils.cpp @@ -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())