compare to string::npos, not 0

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3835 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-01-05 12:02:29 +00:00
parent eff96801df
commit b65e514035

View file

@ -21,7 +21,7 @@ const set<string>& dir_reader::dirs() {
}
void dir_reader::exclude(const string& spec) {
if (spec.find_first_of("?*") >= 0) {
if (spec.find_first_of("?*") != string::npos) {
m_wildcard_excluded.insert(spec);
} else {
m_excluded.insert(spec);
@ -114,7 +114,7 @@ void dir_reader::add_file(const string& file) {
}
}
void dir_reader::add_dir(const std::string& dir) {
void dir_reader::add_dir(const string& dir) {
if (!is_excluded(dir)) {
m_dirs.insert(dir);
}