void SkOSFile::Iter::reset(const char path[], const char suffix[]) { if (fHandle) { ::FindClose(fHandle); fHandle = 0; } if (NULL == path) path = ""; sk_free(fPath16); fPath16 = concat_to_16(path, suffix); }
void SkOSFile::Iter::reset(const char path[], const char suffix[]) { SkOSFileIterData& self = *static_cast<SkOSFileIterData*>(fSelf.get()); if (self.fHandle) { ::FindClose(self.fHandle); self.fHandle = 0; } if (nullptr == path) { path = ""; } sk_free(self.fPath16); self.fPath16 = concat_to_16(path, suffix); }