From 48bba7fb74b11313006a9c9effd134f83a439398 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Tue, 23 Oct 2012 23:00:13 +0200 Subject: [PATCH] src/lyxfind.cpp: use make_pair Use make_pair(...) instead of pair(...). --- src/lyxfind.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index dba41d769a..a19724b8ce 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -240,12 +240,12 @@ pair replaceOne(BufferView * bv, docstring searchstr, // no selection, non-empty search string: find it if (!searchstr.empty()) { findOne(bv, searchstr, case_sens, whole, forward); - return pair(true, 0); + return make_pair(true, 0); } // empty search string if (!cur.inTexted()) // bail in math - return pair(false, 0); + return make_pair(false, 0); // select current word and treat it as the search string cur.innerText()->selectWord(cur, WHOLE_WORD); searchstr = cur.selectionAsString(false); @@ -254,7 +254,7 @@ pair replaceOne(BufferView * bv, docstring searchstr, // if we still don't have a search string, report the error // and abort. if (!searchAllowed(searchstr)) - return pair(false, 0); + return make_pair(false, 0); bool have_selection = cur.selection(); docstring const selected = cur.selectionAsString(false); @@ -267,13 +267,13 @@ pair replaceOne(BufferView * bv, docstring searchstr, // just find the search word if (!have_selection || !match) { findOne(bv, searchstr, case_sens, whole, forward); - return pair(true, 0); + return make_pair(true, 0); } // we're now actually ready to replace. if the buffer is // read-only, we can't, though. if (bv->buffer().isReadonly()) - return pair(false, 0); + return make_pair(false, 0); cap::replaceSelectionWithString(cur, replacestr); if (forward) { @@ -283,7 +283,7 @@ pair replaceOne(BufferView * bv, docstring searchstr, if (findnext) findOne(bv, searchstr, case_sens, whole, forward, false); - return pair(true, 1); + return make_pair(true, 1); } } // namespace anon -- 2.39.2