| 991 | } |
| 992 | |
| 993 | IOUtil::SaveInfo::SaveInfo(const BaseData *baseData, const MimeType &mimeType, const std::string &path) |
| 994 | : m_BaseData(baseData), |
| 995 | m_WriterSelector(baseData, mimeType.GetName(), path), |
| 996 | m_MimeType(mimeType.IsValid() ? mimeType // use the original mime-type |
| 997 | : |
| 998 | (m_WriterSelector.IsEmpty() ? |
| 999 | mimeType // no writer found, use the original invalid mime-type |
| 1000 | : |
| 1001 | m_WriterSelector.GetDefault().GetMimeType() // use the found default mime-type |
| 1002 | )), |
| 1003 | m_Path(path), |
| 1004 | m_Cancel(false) |
| 1005 | { |
| 1006 | } |
| 1007 | |
| 1008 | bool IOUtil::SaveInfo::operator<(const IOUtil::SaveInfo &other) const |
| 1009 | { |
nothing calls this directly
no test coverage detected