From eb2e8e157934957f2fe377a37377f97c18154224 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sat, 3 Apr 2021 17:58:46 -0400 Subject: [PATCH] Polish --- src/Buffer.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index e848b0f69b..c66b730d9d 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -4770,17 +4770,18 @@ Buffer::ReadStatus Buffer::loadEmergency() } case 2: { - string f1 = d->filename.absFileName(); - string f2 = emergencyFile.absFileName(); + string const f1 = d->filename.absFileName(); + string const f2 = emergencyFile.absFileName(); if (loadThisLyXFile(d->filename) != ReadSuccess) return ReadCancel; - string par = "compare run-blocking " + quoteName(f1) + " " + quoteName(f2); + string const par = "compare run-blocking " + quoteName(f1) + " " + quoteName(f2); LYXERR(Debug::FILES, par << "\n"); lyx::dispatch(FuncRequest(LFUN_DIALOG_SHOW, par)); //release the emergency buffer loaded by compare Buffer * emerBuffer = theBufferList().getBuffer(emergencyFile); - if (emerBuffer) theBufferList().release(emerBuffer); + if (emerBuffer) + theBufferList().release(emerBuffer); return ReadCancel; //Release the buffer of Original immediatelly }