LMConsolidator // Do not hurt the latest override information.
This commit is contained in:
parent
ed50045fc6
commit
8a6ea8e0e7
|
@ -98,7 +98,9 @@ bool LMConsolidator::ConsolidateContent(const char *path, bool shouldCheckPragma
|
|||
}
|
||||
}
|
||||
// 在第二遍 for 運算之前,針對 vecEntry 去除重複條目。
|
||||
std::reverse(vecEntry.begin(), vecEntry.end()); // 先首尾顛倒,免得破壞最新的 override 資訊。
|
||||
vecEntry.erase(unique(vecEntry.begin(), vecEntry.end()), vecEntry.end()); // 去重複。
|
||||
std::reverse(vecEntry.begin(), vecEntry.end()); // 再顛倒回來。
|
||||
// 統整完畢。開始將統整過的內容寫入檔案。
|
||||
ofstream zfdContentConsolidatorOutput(path); // 這裡是要從頭開始重寫檔案內容,所以不需要「 ios_base::app 」。
|
||||
if (!LMConsolidator::CheckPragma(path)){
|
||||
|
|
Loading…
Reference in New Issue