correct type
This commit is contained in:
parent
0849ba0353
commit
19194dd8fa
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ ogr_datasource::ogr_datasource(parameters const& params)
|
|||
extent_.init (envelope.MinX, envelope.MinY, envelope.MaxX, envelope.MaxY);
|
||||
|
||||
// scan for index file
|
||||
unsigned breakpoint = dataset_name_.find_last_of (".");
|
||||
size_t breakpoint = dataset_name_.find_last_of (".");
|
||||
if (breakpoint == std::string::npos) breakpoint = dataset_name_.length();
|
||||
index_name_ = dataset_name_.substr(0, breakpoint) + ".index";
|
||||
std::ifstream index_file (index_name_.c_str(), std::ios::in | std::ios::binary);
|
||||
|
|
Loading…
Reference in a new issue