diff --git a/src/fdr/fdr_compile.cpp b/src/fdr/fdr_compile.cpp index 8552c2d6..89a0ff72 100644 --- a/src/fdr/fdr_compile.cpp +++ b/src/fdr/fdr_compile.cpp @@ -315,12 +315,12 @@ void FDRCompiler::assignStringsToBuckets() { for (u32 k = j; k < nChunks; ++k) { cnt += count[k]; } - t[j][0] = make_pair(getScoreUtil(length[j], cnt), 0); + t[j][0] = {getScoreUtil(length[j], cnt), 0}; } for (u32 i = 1; i < nb; i++) { for (u32 j = 0; j < nChunks - 1; j++) { // don't process last, empty row - SCORE_INDEX_PAIR best = make_pair(MAX_SCORE, 0); + SCORE_INDEX_PAIR best = {MAX_SCORE, 0}; u32 cnt = count[j]; for (u32 k = j + 1; k < nChunks - 1; k++, cnt += count[k]) { SCORE score = getScoreUtil(length[j], cnt); @@ -329,12 +329,12 @@ void FDRCompiler::assignStringsToBuckets() { } score += t[k][i-1].first; if (score < best.first) { - best = make_pair(score, k); + best = {score, k}; } } t[j][i] = best; } - t[nChunks - 1][i] = make_pair(0,0); // fill in empty final row for next iteration + t[nChunks - 1][i] = {0,0}; // fill in empty final row for next iteration } #ifdef DEBUG_ASSIGNMENT diff --git a/src/fdr/fdr_confirm_compile.cpp b/src/fdr/fdr_confirm_compile.cpp index b0c3644f..23437fe2 100644 --- a/src/fdr/fdr_confirm_compile.cpp +++ b/src/fdr/fdr_confirm_compile.cpp @@ -472,7 +472,7 @@ setupFullMultiConfs(const vector &lits, u32 idx = c * nBuckets + b; confBase[idx] = confirm_offset; } - return make_pair(move(buf), totalSize); + return {move(buf), totalSize}; } } // namespace ue2 diff --git a/src/fdr/fdr_streaming_compile.cpp b/src/fdr/fdr_streaming_compile.cpp index f6db0c15..f3001743 100644 --- a/src/fdr/fdr_streaming_compile.cpp +++ b/src/fdr/fdr_streaming_compile.cpp @@ -320,7 +320,7 @@ fdrBuildTableStreaming(const vector &lits, stream_control.literal_history_required = max(maxLen(lits), max_mask_len) - 1; stream_control.literal_stream_state_required = 0; - return make_pair(nullptr, size_t{0}); + return {nullptr, size_t{0}}; } // Ensure that we have enough room for the longest mask. @@ -419,7 +419,7 @@ fdrBuildTableStreaming(const vector &lits, // tell the world what we did stream_control.literal_history_required = max_len; stream_control.literal_stream_state_required = tot_state_bytes; - return make_pair(move(secondaryTable), tabSize); + return {move(secondaryTable), tabSize}; } } // namespace ue2 diff --git a/src/fdr/flood_compile.cpp b/src/fdr/flood_compile.cpp index f7a3e083..2ee5a1c5 100644 --- a/src/fdr/flood_compile.cpp +++ b/src/fdr/flood_compile.cpp @@ -217,7 +217,7 @@ setupFDRFloodControl(const vector &lits, DEBUG_PRINTF("made a flood structure with %zu + %zu = %zu\n", floodHeaderSize, floodStructSize, totalSize); - return make_pair(move(buf), totalSize); + return {move(buf), totalSize}; } } // namespace ue2