Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 1 | 0.980 | statement_seq[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 66 | File/ReadUnicodeUTF16File.h |
2 | 17 | 60 | File/WriteUnicodeUTF16File.h |
| ||||
// release current file page if necessary if (m_file_page != NULL) { // release current file page if (!UnmapViewOfFile((LPVOID)m_file_page)) { // close file mapping if (m_file_mapping != INVALID_HANDLE_VALUE) { CloseHandle(m_file_mapping); } // close file if (m_file != INVALID_HANDLE_VALUE) { CloseHandle(m_file); } throw CouldNotReadFile(m_file_name, GetLastError()); } } // close file mapping if (m_file_mapping != INVALID_HANDLE_VALUE) { CloseHandle(m_file_mapping); } |
| ||||
// release current file page if necessary if (m_file_page != NULL) { // release current file page if (!UnmapViewOfFile((LPVOID)m_file_page)) { // close file mapping if (m_file_mapping != INVALID_HANDLE_VALUE) { CloseHandle(m_file_mapping); } // close file if (m_file != INVALID_HANDLE_VALUE) { CloseHandle(m_file); } throw CouldNotWriteFile(m_file_name, GetLastError()); } } // close file mapping if (m_file_mapping != INVALID_HANDLE_VALUE) { CloseHandle(m_file_mapping); } |
| |||
// release current file page if necessary if (m_file_page != NULL) { // release current file page if (!UnmapViewOfFile((LPVOID) m_file_page)) { // close file mapping if (m_file_mapping != INVALID_HANDLE_VALUE) { CloseHandle(m_file_mapping); } // close file if (m_file != INVALID_HANDLE_VALUE) { CloseHandle(m_file); } throw [[#variablea956b60]](m_file_name, GetLastError()); } } // close file mapping if (m_file_mapping != INVALID_HANDLE_VALUE) { CloseHandle(m_file_mapping); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a956b60]] | CouldNotWriteFile |
1 | 2 | [[#a956b60]] | CouldNotReadFile |