Fixed a nasty bug in SearchManager::addDirectory; made the 'char' constructor of Common::String explicit, to avoid such bugs in the future
svn-id: r34660
This commit is contained in:
parent
479e67f2f2
commit
0d34b772a4
3 changed files with 3 additions and 3 deletions
|
@ -338,7 +338,7 @@ void SearchManager::addArchive(const String &name, ArchivePtr archive) {
|
|||
}
|
||||
|
||||
void SearchManager::addDirectory(const String &name, const String &directory) {
|
||||
addDirectoryRecursive(name, 1);
|
||||
addDirectoryRecursive(name, directory, 1);
|
||||
}
|
||||
|
||||
void SearchManager::addDirectoryRecursive(const String &name, const String &directory, int depth) {
|
||||
|
|
|
@ -112,7 +112,7 @@ public:
|
|||
String(const String &str);
|
||||
|
||||
/** Construct a string consisting of the given character. */
|
||||
String(char c);
|
||||
explicit String(char c);
|
||||
|
||||
~String();
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ public:
|
|||
token = tokenizer.nextToken();
|
||||
token = expand(token);
|
||||
|
||||
if (token == '/') {
|
||||
if (token == "/") {
|
||||
tokenWidth = 0;
|
||||
action();
|
||||
textNewLine();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue