be careful with output streams

This commit is contained in:
Dane Springmeyer 2010-07-22 01:16:48 +00:00
parent 4546bbec44
commit 26e4fedfde

View file

@ -114,9 +114,9 @@ int main (int argc,char** argv)
} }
while (itr != shape_files.end()) while (itr != shape_files.end())
{ {
clog << "processing " << *itr << endl;
std::string shapename (*itr++); std::string shapename (*itr++);
boost::algorithm::ireplace_last(shapename,".shp",""); boost::algorithm::ireplace_last(shapename,".shp","");
clog << "processing " << *itr << endl;
std::string shapename_full (shapename+".shp"); std::string shapename_full (shapename+".shp");
if (! boost::filesystem::exists (shapename_full)) if (! boost::filesystem::exists (shapename_full))