diff --git a/src/apps/text_search/Model.cpp b/src/apps/text_search/Model.cpp index 13ed421f6d..b2eefaa86e 100644 --- a/src/apps/text_search/Model.cpp +++ b/src/apps/text_search/Model.cpp @@ -328,8 +328,8 @@ Model::_FreeHistory(BList* items) status_t -Model::_OpenFile(BFile* file, const char* name, uint32 openMode = B_READ_ONLY, - directory_which which = B_USER_SETTINGS_DIRECTORY, BVolume* volume = NULL) +Model::_OpenFile(BFile* file, const char* name, uint32 openMode, + directory_which which, BVolume* volume) { if (file == NULL) return B_BAD_VALUE; diff --git a/src/apps/text_search/Model.h b/src/apps/text_search/Model.h index 0fe76222be..2c81457b0d 100644 --- a/src/apps/text_search/Model.h +++ b/src/apps/text_search/Model.h @@ -23,6 +23,7 @@ #define MODEL_H #include +#include #include #include #include