if(local)
{
- unsigned dot = name.find('.');
+ string::size_type dot = name.find('.');
short_name = name.substr(0, dot);
}
else
{
- unsigned dot = name.size();
+ string::size_type dot = name.size();
for(unsigned i=0; (dot>0 && dot!=string::npos); ++i)
{
- unsigned prev = name.rfind('.', dot-1);
+ string::size_type prev = name.rfind('.', dot-1);
if(prev+15<name.size() && i>1)
break;
dot = prev;