Permalink
Browse files

main: changed search path list back using push_back

  • Loading branch information...
1 parent 44daad8 commit 3603912ea2cf2e4fd87019d3601c4f89ef80f0de @lorem-ipsum committed Apr 9, 2012
Showing with 4 additions and 10 deletions.
  1. +4 −10 src/pathspell.cpp
View
@@ -35,15 +35,12 @@ int main( int argc, char* argv[] )
const std::string spell_file_name = "spells.xml";
std::vector<std::string> path_list;
- // std::vector<std::string> path_list = {
#ifdef HAVE_CONFIG_H
- // "/usr/share/" PACKAGE "/",
- // "/usr/share/" PACKAGE "-" PACKAGE_VERSION "/",
-
+ path_list.push_back("/usr/share/" PACKAGE "/");
+ path_list.push_back("/usr/share/" PACKAGE "-" PACKAGE_VERSION "/");
#endif /* HAVE_CONFIG_H */
- // "./",
- // "../"
- // };
+ path_list.push_back("./");
+ path_list.push_back("../");
std::string spell_list_path = "";
for ( std::vector<std::string>::const_iterator it = path_list.begin();
@@ -54,9 +51,6 @@ int main( int argc, char* argv[] )
break;
}
-/// @TODO TEMP!
- spell_list_path = "./";
-
if ( spell_list_path == "" )
{
std::cerr << "No XML file found!" << std::endl

0 comments on commit 3603912

Please sign in to comment.